You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wayne van de Klee <wa...@lineone.net> on 2000/05/06 18:49:18 UTC
Initialising a packaged servlet
Hi,
getInitParameter() doesn't seem to work when I put my servlet into a
package. It works fine when my servlet is not in a package. All I did
to my web.xml file was qualify the servlet class with the package path:
<web-app>
<servlet>
<servlet-name>
KMainServlet
</servlet-name>
<servlet-class>
util.KMainServlet
</servlet-class>
<init-param>
<param-name>foo</param-name>
<param-value>bar</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
</web-app>
I'm on Linux