tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jardin Xavier" <xjar...@sofice.fr>
Subject Re: Global Variables
Date Wed, 03 Dec 2003 16:15:13 GMT
use

<context-param>
 <param-name>param</param-name>
    <param-value>value</param-value>
</context-param>

in the web.xml

and String param = servletContext.getInitParameter("param");

in the JSP.


----- Original Message ----- 
From: "Duncan" <dsmith@deckertelecom.net>
To: "Tomcat User List" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, December 03, 2003 5:08 PM
Subject: Global Variables


> Is there a way to set global variables in the web.xml which can be read
> by any JSP page?
> 
> Cheers,
> -Duncan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
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