hi, i have a jsp that activates a servlet and after processing, the servlet should display a message, wait for a while then return the control to the jsp.
JSP1->servlet1->JSP1
the servlet can be activated by other jsp too
JSP2->servlet1->JSP2
getServletContext().getRequestDispatcher("/jsp1.jsp".forward(request, response) is definitely not correct, since the calling JSP isn't always the same.
'm stuck, how to make the servlet display a message and then return to the calling jsp after waiting for some 5 seconds?
any kind soul pls advise, or is there any code i can reference?
JSP1->servlet1->JSP1
the servlet can be activated by other jsp too
JSP2->servlet1->JSP2
getServletContext().getRequestDispatcher("/jsp1.jsp".forward(request, response) is definitely not correct, since the calling JSP isn't always the same.
'm stuck, how to make the servlet display a message and then return to the calling jsp after waiting for some 5 seconds?
any kind soul pls advise, or is there any code i can reference?