| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Fredrik Westermarck <fredrik.westerma...@mdh.se> |
| Subject | Re: reading content in WEB-INF |
| Date | Wed, 20 Feb 2002 00:20:32 GMT |
Max Z. wrote:
> I am storing a file in the WEB-INF directory and I need to access it with a
> servlet, how would I get to it?
>
Use:
InputStream is =
getServletContext().getResourceAsStream("/WEB-INF/your.file");
--
To unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
| |
| Mime |
|
| View raw message | |