Experts,
I have a
jsp myjsp.jsp.
The jsp has a HTML form which submits/posts to a
servlet.
The servlet processes the request and then forwards to the same jsp myjsp.jsp like so :
RequestDispatcher rd =
getServletContext().getRequestDispatcher("/myjsp.jsp");
rd.forward(request, response);
My problem is when returning from the servlet I want the jsp to act as though it is receiving a completely new request.
Because there are parameters still in the request object when it gets forwarded myjsp.jsp is not behaving correctly.
Is there any way I can destroy the old request object once processed and force a new one. I am looking for behaviour similar to <jsp:forward ...>.
Please share solutions/workarounds.
Thank you.