hi,
I defined a context-param in the web.xml of the Axis webapp and I would
like to get the value of this param from my web service.
The code below doesn't seem to work:
<code>
AxisServlet axisServlet = new AxisServlet();
ServletContext axisServletContext =
axisServlet.getServletContext();
String paramValue =
axisServletContext.getInitParameter(
"VERSION_PROTOCOLE"));
</code>
Thanks a lot.
-o--
oziris - 22 Feb 2006 09:50 GMT
FYI here the piece of code that do the job
<code>
HttpServlet servlet =
(HttpServlet) MessageContext.getCurrentContext().getProperty(
HTTPConstants.MC_HTTP_SERVLET);
String versionProtocoleServeur =
servlet.getServletContext().getInitParameter(
KEY_VERSION_PROTOCOLE);
</code>
-o--