tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: error processing web.xml
Date Thu, 14 Dec 2000 13:05:52 GMT


Rogelio Triviño wrote:
> 
> Hi, everybody:
> I´m using tomcat 3.2.0 in win2000, and debugging it with Jbuilder 4.0.
> I´ve found that processing this for my webapp:
> <web-app>
>   <context-param>
>     <param-name>webmaster</param-name>
>     <param-value>webmaster@easychangeweb.com</param-value>
>     <description> The EMAIL address of the administrator to whom questions
>    and comments about this application should be addressed.
>     </description>
>     <param-name>directorioDescarga</param-name>
>     <param-value>c:\dev\fotos</param-value>
>     <description>inicializacion de directorio de upload</description>
>   </context-param>
> only read correctly the last param, wichever be. The first one is lost
> when using
>     webmaster = config.getServletContext().getInitParameter("webmaster");
>     dirName =
> config.getServletContext().getInitParameter("directorioDescarga");
> 
> for retreiving.
> Is a bug?
> Thanks.

You need a separate <context-param>...</context-param> tag
pair for each one you set. 

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Mime
View raw message