tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <christopher.d.schu...@comcast.net>
Subject Re: Global Variables
Date Wed, 03 Dec 2003 17:40:51 GMT
Duncan,

>>and String param = servletContext.getInitParameter("param");
 >
> Thanks for the replies, but what do I define servletContext as?

In every JSP, the ServletContext object is implicitly declared with the 
identifier "application".

So, you should just be able to do something like this in your JSP:

<p>
    my_param = <%= application.getInitParameter("my_param") %>
</p>

-chris



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