users@glassfish.java.net

Re: relative paths to images in a web-app on glassfish

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 May 2008 15:09:39 PDT

Try accessing your webapp's resource in a portable way, by calling ServletContext.getResource("/web/secure/images/logo.jpg") or ServletContext.getResourceAsStream("/web/secure/images/logo.jpg") ...
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=275359