• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending data to popup window

 
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. 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.

Thanks a lot.
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the HTML/Javascript forum as all of this is client-side machinations.
 
Uma Viswanathan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Bear Bibeault,
I am sorry if u feel that i have posted in the wrong forum (i.e JSP). I posted this in jsp forum since the problem is with jsp, javascript and servlets. Thanks a lot.
 
Uma Viswanathan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone please clarify my doubt? Thanks a lot.
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic