John Todd wrote:Sorry, I didn't understand. Would you please elaborate more?
ohk i have made a jsp page where i am using both jsp and ajax.. in ajax you use xmlhttp.responseText to get the response from the server(through servlet)..
In servlets, verification is done properly...after the verification i want to navigate the user to his profile i.e. a new jsp page .....for that i am using both RequestDispatcher as well as sendRedirect..
In sendRedirect, response is first sent to client and then to the server for accessing another page..which i dont want..
In RequestDispatcher its happening the same as well.....the entire code of the new jsp sent in the form of response to client in xmlhttp.responseText....
it does not forward to another jsp from servlet...