Passing data from jsp to jsp to servlets to jsp (OR) NOT to process user's req again
posted 12 years ago
Problem: I have one jsp page (say, page1.jsp). When i click the 'continue button' in this jsp page, it will submit the form to another jsp page (say page2.jsp), which then passes the data to one servlet (say servlet1) which does some processing and passes to another servlet (say servlet2). This servlet dispatches the request to another jsp (say page3.jsp) which is displayed in the screen.
In short, when the continue button in page1.jsp is clicked, page3.jsp is displayed in the screen (but it goes via page2.jsp, servlet1 and servlet2).
I want to disable back button and refresh button in page3.jsp.
Popup Window Solution: I did some research by searching this web site and some others. I tried all the possible solutions. I feel popup window (with url of page3.jsp) may work.
I tried window.open() in page1.jsp, but the page3.jsp is displayed without any data. Can someone please give me the idea to popup the window (with url of page3.jsp) with all the data from page1.jsp. Basically it needs to go thru page2.jsp, servlet1 and servlet2.
If popup window is not the right solution, please provide me the right idea to prevent user from reloading/refreshing the page or clicking back button (bcoz if i allow user to refresh/reload or to click back button, the request is processed again). Thanks a lot.