tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Kelley" <ben_kel...@ubsw.com>
Subject Re: multiple parameters in context-param
Date Tue, 11 Jul 2000 12:27:12 GMT
Hi.

Did you get any replies to this problem? I have only been playing with
tomcat for a couple of days, but I noticed the same problem. It only sees
one of the parameters.

     - Ben Kelley.

----- Original Message -----
From: <kert@core.tb.cz>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, July 11, 2000 1:14 PM
Subject: multiple parameters in context-param


> Hello all,
> I'm using Tomcat 3.1 final and have following in web.xml:
>
> <web-app>
>   <context-param>
>
>     <param-name>param1</param-name>
>     <param-value>value1</param-value>
>
>     <param-name>param2</param-name>
>     <param-value>value2</param-value>
>
>     <param-name>param3</param-name>
>     <param-value>value3</param-value>
>
>   </context-param>
>  .
>  .
>  .
> </web-app>
>
> The problem is that only the last name/value pair is set in the servlet
> context... So this piece of code
>
>     Enumeration params = this.getServletContext().getInitParameterNames();
>     while (params.hasMoreElements()) {
>       System.out.println(params.nextElement());
>     }
>
> always prints
> param3
>
> Am I missing something? Can I define multiple name/value pairs in servlet
> context this way?'
>
> Thanks
> Roman Kratochvil
>
>
>


This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


Mime
View raw message