• 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

Requests and Sessions

 
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My question is in regard to loosing information due to objects being in the request scope or the session scope. If I have some objects that hold important information and I end up using a request scope to hold them. Lets say it is a customerObject. I then go forward 2 pages. I later on decide I want to back track two pages. So I hit the back button on my browser twice. My question is ...will my customerObject still be in the request scope?
-Dale
[ February 28, 2002: Message edited by: Dale DeMott ]
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Things stored in the request scope will, by definition, only be stored for the life of the current request. If you go forward 2 pages, and then try to click back... you've already lost the objects.
For waht your'e talking about, you'll need to use the session scope.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess I was getting confused about if the web page would go back to the server or not and recreate the objects. But I'm thinking it wouldn't normally do that now that I think about it.
-Dale
 
reply
    Bookmark Topic Watch Topic
  • New Topic