• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Zoe Peng
Ranch Hand
Posts: 112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic