tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: read file inside WEB-INF
Date Fri, 20 Oct 2006 17:12:13 GMT

> 2) Then the code will be independent of the servlet API
> InputStream in =
> my_class_name.class.getResourceAsStream("/my_configuration");

Not a bad idea. The use of the term "web service init" made me think of
a webapp initializer, in which case, he's already tied to the servlet API.

But if he's using something like Axis, then there is no ServletContext
around to use IIRC.


View raw message