Is this the right way to have "global" parameters for my servlets?
Posted
by Geo
on Stack Overflow
See other posts from Stack Overflow
or by Geo
Published on 2010-06-08T16:12:25Z
Indexed on
2010/06/08
16:22 UTC
Read the original article
Hit count: 156
If I have:
<context-param>
<param-name>SomeParam</param-name>
<param-value>SomeValue</param-value>
</context-param>
in my web.xml
, is this the servlet way of specifying options ( like in the way a config file is used ) , or am I doing something wrong? I know about init-param
that can be specified for a servlet, but I'd like o make sure some values are the same for all the servlets.
© Stack Overflow or respective owner