tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne van de Klee <wayne.vandek...@lineone.net>
Subject Initialising a packaged servlet
Date Sat, 06 May 2000 16:49:18 GMT
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


Mime
View raw message