java - How to Prevent JSP Page Refresh -
please can 1 me idea on how prevent jsp page refresh when request parameter triggered. below line of code:
string action = request.getparameter("cmd"); if (action == null) { system.out.println("you here2"); action = ""; } else if(action.equalsignorecase("examselected")){ system.out.println("the exam id of long value " + examid); arraylist<subject> subjectname = new arraylist<subject>();
i want when action on examselected, let jsp page not refresh. in response.
if want update info o page without refreshing can use ajax updating info on page.
here detailed tutorial describes how to ajax requests.https://netbeans.org/kb/docs/web/ajax-quickstart.html