Issue in returning 302 response code instead of 200 response code
posted 5 years ago
While submitting the form and if the http method is POST, then instead of returning 200 response code, I will be redirecting to dummy/temp page from which it will be directed to required page, so that we will return 302 response code to avoid the caching of senstivie information.
This is working fine and in one place it's giving some strange error which is working fine without the above logic.
My dummy jsp page will have the following code for redirection.
Actual page to be redirect from servlet: empSuccess.jsp
Below methos will open a popup window to display the message to the user that it's about to download the report and the form will be submitted for the biz logic. The form submission is working fine, but the download.jsp page is not diaplying and returing 404 error.
But if I am not usinf the above logic (200 instead od 302 rsp code), the download.jsp pasge is displaying properly. Any suggestion/idea on why it's not working?