I started my morning by discovering something really cool...and then
discovering that I couldn't use it. Sun's Java Tutorial on servlets
gives great examples on how to share resources between servlets.
However, it uses JSDK v2.1 as its base, which doesn't help much.

In the interface (JSDK v2.0) there is a method called getAttribute() -
which is GREAT for only creating one instance of an object that BY ALL
COMMON SENSE you only need one copy of. However, the corresponding
setAttribute() method is not included in JSDK v2.0 (rather, JSDK v2.1).
That is no fun!

So, I was wondering...in the great wisdom of this list, does ANYONE know
how to set attributes in the current ServletContext. It seems to me that
there should be some method by which to accomplish this or the method
getAttribute() would not even exist for the ServletContext interface.

PLEASE HELP!!! This is fairly important. Thanks!

Befuddled,
Paul J Thompson


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to