• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Passing data from jsp to jsp to servlets to jsp (OR) NOT to process user's req again

Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
    Bookmark Topic Watch Topic
  • New Topic