I want to send a file to browser and then want to send control to another jsp. i am sending a file to browser through following command which is opening in a new window.after that i want to forward the page to a jsp how can i do it
What other alternative do i have for the following situation:
i have a button with caption download file
on the click of the button request is submitted to downloadfile.java servlet
downloadfile.java servlet sends doc file to browser by opening separate (open ,save as) dialog box
during this event my file1.jsp is visible in its own window on client side while client gets an (open saveAs) popup dialog for doc file.
i want my downloadfile.java servlet to send the download file to servlet (which it is doing perfectally well) and also refresh the file1.jsp which i cannot do because servlet cannot send two responses?
I have the link point to the second JSP. In the second JSP, I have a hidden iframe that has makes a request for the download file in its onload event.