javascript - Calling java code from java script in JSP -
i newbie in ui i.e. front end. using javascript , jsp. need perform below task.
i have textarea in jsp page gets populated text file read using java. now, want empty text area , text file on clicking button. emptying file not issue don't how transfer call jsp file servlet on clicking button.
please help.
there 2 ways this:
the classical way form submission:
http://www.tutorialspoint.com/jsp/jsp_form_processing.htm
e.g. embedded form in jsp page send data server when submitted.
the second way via ajax
https://en.wikipedia.org/wiki/ajax_(programming)
i suggest google basics of form submission (which not jsp specific) or doing ajax requests javascript (with library, example jquery)
Comments
Post a Comment