users@glassfish.java.net

Re: Cannot display image from form-based login jsp

From: Hassan Schroeder <hassan.schroeder_at_gmail.com>
Date: Thu, 6 Aug 2009 12:13:17 -0700

On Thu, Aug 6, 2009 at 11:27 AM, <glassfish_at_javadesktop.org> wrote:
> For http://example.com/foobar/images/eah_banner_logo.gif
>
> its complete path is "/foobar/images/eah_banner_logo.gif", is that right?

Yes. Have you looked at the two image paths in question?

> I don't have FireFox

? I don't know how anyone doing web development can *not* have
Firefox with the web developer and firebug plugins, but whatever.

> I like to  try your idea:
> url encoding of all your links via the JSTL standard lib.

The effect is the same as this
src="<%=request.getContextPath()%>/images/eah_banner_logo.gif"
which was already suggested, so if that didn't work, using the JSTL
won't help this problem.

> Would you please tell me how to do that way?

<http://java.sun.com/products/jsp/jstl/>

-- 
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan