J
James
Hi,
I have an issue related to servlets.
When i process a servlet in some instances a request is made to use
sendRedirect(). This works correctly however the remaining process on
the existing servlet is carried out.
Servlet1 is run
Servlet1 redirects to Servlet2
Servlet1 continues to run until end
Is thier any way, other than putting conditional tests into parts of the
code to ensure that servlet1 ends when servlet2 is called?
Im currently using the following code to indicate a forward:
*resp is the Response object*
resp.resetBuffer();
resp.setStatus(302);
resp.sendRedirect(url);
this.forwardingstate = true;
The two problems with what is happening is that processing any
additional code is a waste of resource and sometimes both the original
and redirected page both appear on the same browser window.
Any help of this would be really appreciated.
Thanks,
James.
I have an issue related to servlets.
When i process a servlet in some instances a request is made to use
sendRedirect(). This works correctly however the remaining process on
the existing servlet is carried out.
Servlet1 is run
Servlet1 redirects to Servlet2
Servlet1 continues to run until end
Is thier any way, other than putting conditional tests into parts of the
code to ensure that servlet1 ends when servlet2 is called?
Im currently using the following code to indicate a forward:
*resp is the Response object*
resp.resetBuffer();
resp.setStatus(302);
resp.sendRedirect(url);
this.forwardingstate = true;
The two problems with what is happening is that processing any
additional code is a waste of resource and sometimes both the original
and redirected page both appear on the same browser window.
Any help of this would be really appreciated.
Thanks,
James.