Hi Andreas.
You can get you parameter with:
'request.getSession().getServletContext().getInitParameter("CONFIGFILE")'
It first gets a reference on your application context and then gets the
parameter you wrote in <context-param>...</context-param>
Fred.
-----Message d'origine-----
De : Andreas Andersson [mailto:[EMAIL PROTECTED]
Envoy� : lundi 6 d�cembre 2004 13:57
� : [EMAIL PROTECTED]
Objet : 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
----------------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the "message") are confidential and intended
solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be
liable for the message if altered, changed or falsified.
----------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]