A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Attribute in ServletContext
Joined: Aug 14, 2003
Mar 08, 2004 13:39:00
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?
Joined: Mar 04, 2004
Mar 09, 2004 02:29:00
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:
subject: Attribute in ServletContext
Attributes, Session and ServletContext
Question on attributes
Access attribute of other Web Application
ServletContext is not distributable...
HFS page274, question7
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015