tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kitching Simon <>
Subject RE: JSP Context ?
Date Thu, 21 Sep 2000 14:21:23 GMT

> -----Original Message-----
> From:	Charles Sabourdin []
> Sent:	Thursday, September 21, 2000 4:09 PM
> To:
> Subject:	JSP Context ? 
> Hi, I am looking for a way to set some variables into
> my web.xml that I could retreive like servelt :
> <init-param>
>      <param-name>param3</param-name>
>      <param-value>value3</param-value>
> </init-param>
> Does anyone has any suggestion?
	[Kitching Simon]  
	Do you mean that you want to retrieve init parameters
	from JSP code?

	I have init-params working fine with a servlet, but gave up
	on passing them to jsp pages, even though there is a
	<jsp-file> tag nestable in the <servlet> tag.

	As a result, I have a servlet marked as load-on-startup
	that jsps call to retrieve such parameters. Global init
	parameters set in <context-param> tags can be
	retrieved from jsp pages. In both approaches, though,
	the params are global to the webapp, not per-page.
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.

View raw message