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


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -