tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland" <>
Subject Re: Limits on the size of the web.xml file?
Date Mon, 03 Sep 2001 20:23:56 GMT
Reading trough the servlet2.3 specs I found another interesting thing. How
about using getResource() or getResourceAsStream() on the ServletContext?
The specs say you should be able to access ANY file using that. How do I
code that in a jps page? getResource() returns an URL object. What do I do
with it? Would it be like this:

<% servletContext.getResource("/myfile.gif"); %>


View raw message