how can I call another JSP without transferring control to that. The response.sendRedirect is transferring control to the next jsp page. I still have some code after the response line which needs to be executed but it doesnt gets executed.
ok. let's say I have Main.jsp and newpage.jsp. let statements in main.jsp be like
int i = 1;
currently, running this code will transfer control to newpage.jsp and will not execute the next two lines. how can i execute the next commands after running newpage.jsp. I do not wish to transfer control to newpage.jsp. it may run in background. I know only of response.sendRedirect now. Is there a way to achieve the above mentioned objective?