This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Request Scope and Session Scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Request Scope and Session Scope" Watch "Request Scope and Session Scope" New topic
Author

Request Scope and Session Scope

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
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 ]

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

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.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Scope and Session Scope