I have some application scope data that I want to
share with all the servlets and JSPs in my
application.
So I load my class "InitTwc" from my application�s
web.xml (load-on-startup = 99, i.e. LAST). It launches
successfully however when I call the:
getServletContext().setAttribute("com.mycompany.app-param",
"app-value");
I get a null error sent to my Tomcat window and the
servlet terminates then and there and the rest of my
servlet code does NOT execute.
I�m thinking maybe I can�t use
getServletContext().setAttribute while loading
servlets in the web.xml file ???
All comments/ideas much appreciated!
Richard Diaz
=====
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>