tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: web.xml
Date Mon, 06 Dec 2004 13:03:08 GMT
"normal" class? Is that a Servlet? 

public void init(ServletConfig cfg) throws ServletException {
  String s = cfg.getInitParameter("CONFIGFILE");
}

you'll need \\ instead of \

Allistair.

> -----Original Message-----
> From: Andreas Andersson [mailto:andreas@travelstart.se]
> Sent: 06 December 2004 12:57
> To: tomcat-user@jakarta.apache.org
> Subject: web.xml
> 
> 
> Hi all!
> 
> I'm wondering how to get the values of the context-param 
> CONFIGFILE (see 
> below) into my normal class.
> 
> <web-app>
>    <context-param>
>      <param-name>CONFIGFILE</param-name>
>      <param-value>c:\some\path\config.xml</param-value>
>    </context-param>
> </web-app>
> 
> -- 
> Andreas Andersson
> IT Dept.
> Travelstart Nordic
> andreas@travelstart.se
> http://www.travelstart.se
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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


Mime
View raw message