Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request Scope and Session Scope

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working w/Servlets and JSP pages and want to be efficient with my memory. My question deals with request scope and session scope. If some information needs to only go from one page to the next, shouldn't I put this information in the request scope. And if I DO put this in the request scope, will this survive when I hit the back button to this page 5 pages later. Example: Page A requests an item price for my toy truck. Its $15434.00. (Nice truck huh?) Anyway, this information is put into the request scope. The informaiton is used on page B. I go on and go to page C then D then E and decide I need to hit the back button all the way back to page B. Will that information for the price of the truck still be there?
Regards,
Dale DeMott
[ January 18, 2002: Message edited by: Dale DeMott ]
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dale -
I'm going to transfer this question to the Servlets forum. Should be a truck of guys over there who can answer this quickly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic