calling servlet in background from jsp
-
when we call servlet from a JSP page .. explorer/program moves to servlet page .... Such in my scenareo i have JSP form that on submiting call servlet to retrieve data from XML .. But problem is that . i like that on submitin form servlet runs in background without changing page to servlet page ... like thread in background .... SO PLZ ANY IDEA OR SUGGESTION !!!! THANKS T ALL HELPERS ...
-
when we call servlet from a JSP page .. explorer/program moves to servlet page .... Such in my scenareo i have JSP form that on submiting call servlet to retrieve data from XML .. But problem is that . i like that on submitin form servlet runs in background without changing page to servlet page ... like thread in background .... SO PLZ ANY IDEA OR SUGGESTION !!!! THANKS T ALL HELPERS ...
-
when we call servlet from a JSP page .. explorer/program moves to servlet page .... Such in my scenareo i have JSP form that on submiting call servlet to retrieve data from XML .. But problem is that . i like that on submitin form servlet runs in background without changing page to servlet page ... like thread in background .... SO PLZ ANY IDEA OR SUGGESTION !!!! THANKS T ALL HELPERS ...
From what I think I read in your question, you want to do Ajax. This will allow you to put a request out to the servlet and process the result with Javascript inside the HTML without changing the actual browser page. Try jQuery to get this to work. If you do not know what Ajax or jQuery are, you first need to do some reading. There is enough info on this on the internet.