This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?