Thanks a lot.
 
At least now I have a work around until the next release of tomcat.
(And no you are not crazy, my computer does not like me either.)
 
Good luck,
Jason B.
-----Original Message-----
From: Paul Hoepfner-Homme <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, October 26, 2000 12:56 PM
Subject: Re: Frustration with getInitParameter

Finally, I'm not alone!!  I have 3.2 beta 6 as well.  Here is a how I have web.xml set up:

<web-app>
    <context-param>
        <param-name>test1</param-name>
        <param-value>here1</param-value>
    </context-param>
    <servlet>
        <servlet-name>myservlet</servlet-name>
        <servlet-param>MyServlet</servlet-param>
        <init-param>
            <param-name>test2</param-name>
            <param-value>here2</param-value>
        </init-param>
    </servlet>
</web-app>

I can access the "test1" parameter by calling getServletConfig().getServletContext().getInitParameter("test1").  But I cannot access the "test2" parameter at all.  For example calling getServletConfig().getInitParameter("test2") returns null.

Paul

Reply via email to