> From: Paul A. Hoadley [mailto:[EMAIL PROTECTED] 
> Subject: Re: Using getImplementationVersion() to read MANIFEST.MF
> 
> Oh, I just meant I used java.util.jar.Manifest to parse 
> the manifest instead of java.util.Properties.  I still
> used ServletContext.getResourceAsStream() to obtain it.
> Is that safe, or does it also suffer from that caveat?

That's fine.  I just misunderstood how you were using it.

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

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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