This content has been marked as final.
Show 3 replies
-
1. Re: Access to web.xml <context-param> values
norman Feb 26, 2009 12:01 AM (in response to vgriffin)How about this?
'ServletLifecycle.getServletContext().getInitParameter(
myparam
);' -
2. Re: Access to web.xml <context-param> values
vgriffin Feb 27, 2009 12:51 AM (in response to vgriffin)Great! I just tried it in my code and it works. Is a non-null value for ServletLifecycle.getServletContext() always available? If not, what are the restrictions?
Thanks!
-
3. Re: Access to web.xml <context-param> values
norman Feb 27, 2009 1:10 AM (in response to vgriffin)If we are in a properly initialized servlet environment there should always be a servlet context available.