• 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

Session Object problem when use back button

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
I'm making JSP's and storing the pagenumbers in a Session object as integer. If the user uses the back button to come to the first page my session variable goes for a toss. How do I take care of this.
Thanks
Neha
 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to add a little more description. I'm using a MVC model , where a controlling servlet is everytime the page is displayed. The problem here is when I call the JSP's from the servlet the first time everything goes fine, but when I press back button and come to the starting page, my servlet doesn't know that the user has used back button and it should not show what is in the session object.
Thanks
Neha
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I understood your question... see if this post will help: http://www.javaranch.com/ubb/Forum7/HTML/004412.html
In the 7th reply, I described using tokens to enforce the order of your application. See if that helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic