"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:[EMAIL PROTECTED]
> Sent: 06 December 2004 12:57
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> http://www.travelstart.se
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
<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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]