On 06/03/2007, at 12:53 AM, Caldarale, Charles R wrote:

I guess the question is this: is there another way for a
non-servlet class instantiated within a servlet container
to obtain a ServletContext object?

How is your bean created?

I just instantiate it in some JSP code (in particular, in a custom tag that renders page footers):

  <jsp:useBean id="version" class="clinaids.bean.Version"/>

This would normally be done by a
ServletContextListener during app initialization, and whatever
context-scope properties are needed could be established then.  See
section 10 of the servlet spec for details.

OK, will read.  Thanks.


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to