aspose file tools*
The moose likes Servlets and the fly likes Attribute in ServletContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Attribute in ServletContext" Watch "Attribute in ServletContext" New topic
Author

Attribute in ServletContext

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
If I put attributes in the ServletContext I have the problem that this attributes will be visible per everybody ??? Using session I dont have this problem, because session is per browser. OK?
john smith
Ranch Hand

Joined: Mar 04, 2004
Posts: 75
There is one ServletContext per application so yes attributes of this object are avaliable application-wide. The Session object is bound to a particular session id and so is avaliable only to a particular client session.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Attribute in ServletContext
 
Similar Threads
Attributes, Session and ServletContext
Access attribute of other Web Application
Question on attributes
HFS page274, question7
ServletContext is not distributable...