tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morahg, Yoav" <Ymor...@gist.com>
Subject RE: Unable to read more than 1 init param
Date Tue, 06 Feb 2001 21:28:52 GMT
You need <init-param></init-param> tags to enclose each
<param-name><param-value></param-value></param-name> set.

So the init-param portion of your web.xml would look like this:

<init-param>
            <param-name>bar</param-name>
            <param-value>
                        sadsadasda
            </param-value>        
</init-param>
<init-param>
            <param-name>foo</param-name>
            <param-value>
                     sdlfslkdjfkjdsflks
            </param-value>
</init-param>

-Yoav

-----Original Message-----
From: Shahed Ali [mailto:shahed@enoor.com]
Sent: Tuesday, February 06, 2001 4:19 PM
To: tomcat-user@jakarta.apache.org
Subject: Unable to read more than 1 init param


Hi,

I am using Tomcat 3.2.1 w/JDK 1.3 w/Apache 1.3.14

I have added a few init parameters for the SnoopServlet.
However when I run it, I get only  1 parameter displayed.

Is this some sort of bug ?

My web.xml is as follows :

Thanks
Shahed

  <servlet>
        <servlet-name>
            snoop
        </servlet-name>
        <servlet-class>
            SnoopServlet
        </servlet-class>
        <init-param>
            <param-name>bar</param-name>
            <param-value>
                        sadsadasda
            </param-value>
            <param-name>foo</param-name>
            <param-value>
                     sdlfslkdjfkjdsflks
            </param-value>
        </init-param>
    </servlet>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message