18/04/2002 10:03:51, LAMY Olivier <[EMAIL PROTECTED]> a �crit:
>Bonjour la liste,
>Dans mon fichier web.xml, j'ai la d�claration suivante :
> <context-param>
> <param-name>toto</param-name>
> <param-value>titi</param-value>
> </context-param>
>Je cherche le moyen d'avoir acc�s � ce param�tre depuis une page JSP.
>Cela est-il possible ? sinon comment d�finir des constantes qui soient
>valables pour un ensemble de JSP ?
>Merci d'avance,
>Olivier
dans une servlet :
ServletContext ctx = getServletContext();
String titi = ctx.getInitParameter("toto");
dans une JSP
<% String titi = application.getInitParameter("toto"); %>
--
Fr�d�ric Laurent
http://www.opikanoba.org