tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Accessing files within the WEB-INF folder
Date Thu, 02 Sep 2004 14:14:25 GMT

Hi,
ClassLoader#getResource will work and is a good approach.  So is
ServletContext#getResource. 

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Steiger, Andrew [mailto:andrew_steiger@merck.com]
>Sent: Thursday, September 02, 2004 9:52 AM
>To: 'tomcat-user@jakarta.apache.org'
>Subject: Accessing files within the WEB-INF folder
>
>Hello All,
>
>I am wondering what the best method for accessing files that are
located
>within the WEB-INF folder?  I tried using the
ClassLoader.getResource(),
>but
>then I realized that won't work.
>
>Thanks in advance,
>Andrew.
>
>------------------------------------------------------------------
>  Name:     Andrew Steiger
>  Phone:     267.305.1515
>  Cubicle:   UG2A208T
>  Mailstop: UG2A-50
>  Email:     andrew_steiger@merck.com
>-----------------------------------------------------------------
>
>
>
>-----------------------------------------------------------------------
----
>---
>Notice:  This e-mail message, together with any attachments, contains
>information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New
>Jersey, USA 08889), and/or its affiliates (which may be known outside
the
>United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan,
as
>Banyu) that may be confidential, proprietary copyrighted and/or legally
>privileged. It is intended solely for the use of the individual or
entity
>named on this message.  If you are not the intended recipient, and have
>received this message in error, please notify us immediately by reply
e-
>mail and then delete it from your system.
>-----------------------------------------------------------------------
----
>---
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


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