users@glassfish.java.net

Re: Cannot display image from form-based login jsp

From: Hassan Schroeder <hassan.schroeder_at_gmail.com>
Date: Wed, 5 Aug 2009 13:45:20 -0700

On Wed, Aug 5, 2009 at 1:35 PM, <glassfish_at_javadesktop.org> wrote:

> The home page jsp which is forwarded by successful login page can display the same image.

So what's the path when the image is successfully displayed?

> What do you mean "And is your app the root (/) context? If not, that url isn't going to work for sure."?

If your app context is, e.g., /example, you would have to set the img
src as /example/images/foo.gif. Or use relative paths, or (better) do
url encoding of all your links via the JSTL standard lib.

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