tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Viaud <cedric.vi...@matrasi-tls.fr>
Subject Re: Access Parameter
Date Wed, 14 Aug 2002 12:57:53 GMT
As JSP are "compiled" as servlets, you can do with JSP everything you can do
with servlets.

Check for the exact syntax.

Regards,

   Cédric

----- Original Message -----
From: <TOMITA_ALEX_NONLILLY@LILLY.COM>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Tuesday, August 13, 2002 6:32 PM
Subject: Access Parameter


> Can I use something like this in my jsp page (instead of a java sevlet) to
>
> get the parameter name?,
> before that I set the parameter in my web.xml file like this:
>
> <context-param>
>       <param-name>parameter name</param-name>
>       <param-value>localhost</param-value>
> </context-param>
>
> String value =  getServletContext().getInitParameter("parameter name");
>
> is it only works in a sevlet or will it work in a jsp page too???
>
> thanks again
> Alex Tomita
>



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


Mime
View raw message