-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

On 4/18/2010 2:27 PM, David Smith wrote:
> ServletContext.getResource( path ) takes path as relative to the current
> webapp and returns a URL for opening the resource or null if the
> resource was not found.
> 
> also there is --
> 
> ServletContext.getResourceAsStream( path ) takes a path as relative to
> the current webapp and returns an i/o stream for reading the file.

Yes, please use ServletContext.getResourceAsStream.

> both of these are well documented in the servlet spec.

And in the Servlet API itself if you don't want to dig into the spec
just to read the javadoc.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvMyzoACgkQ9CaO5/Lv0PAG5QCgmmoU7Blc/z1Gzkl3uwOvEUmu
K7wAoJwSb/lD3sVxaYpcg0gq/323BMH3
=N2lO
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to