GeeCON Prague 2014*
The moose likes Servlets and the fly likes when is the scope= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "when is the scope="session, page, application.."died??" Watch "when is the scope="session, page, application.."died??" New topic
Author

when is the scope="session, page, application.."died??

Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
I wonder
when is the scope="session, page, application.."died??
What's the definition for these objects?
The scope = " request" ..when server response, then ..it died.
how to explain the others??
Thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
Scope - usage
request - a single cycle of request / response
page - JSP only - even more restricted than request, not available when request is forwarded
session - single user, multiple request, time limited(usually)
application - one object used for all requests to this web application (multiple servlets, same URL base)
What do you mean "died"
Bill
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Bill,
Thx
I am thinking about which scope I need to use in order to get more security.
It's good for me to think about all of them together since I think I still can't answer it very clearly. Now, clear..
"died.." I think it's end of process(flow).
 
GeeCON Prague 2014
 
subject: when is the scope="session, page, application.."died??