My current understanding is that init-params in the web.xml must be put in the body of a servlet variable, like this:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>MyServlet</servlet-class>
<init-param>
<description>debug</description>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
Which works fine, but if I bring the init-param outside the servlet body, then it no longer recognizes it when I call getInitParam()
Just wondering if it was possible, since I have 3 servlets that I would like to share common init parameters