• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Maintain Page state if one servlet is calling another servlet

 
Greenhorn
Posts: 10
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on webbased application using Tomcat, application flow is -
There is one jsp A.jsp from where we select some fields and submit it which calls myServlet.java; MyServlet.java is used to display information inside popup screen using out.println().
My Problem is - popup screen have one link to open pdf file and clicking that link calls PdfServlet.java that opens a pdf file, pdfServlet.java have following header info -

Now problem is creating here --- why back arrow given on browser is refershing A.jsp, i dont' want to reset my info. I just need the page state as it is for which i am creating the pdf. why its reset all info on back; is it because link is opened from popup screen not from A.jsp? how i can get the same state without making any flow change menas print link always be on pop up screen.

Thanks in Advance !!!
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic