users@glassfish.java.net

RE: Cannot display image from form-based login jsp

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Thu, 6 Aug 2009 13:56:00 -0400

this is my config
$GLASSFISH_HOME/domains/domain1/applications/j2ee-modules/hello
login.jsp contains:
<html>
<head><title>Hello</title></head>
<body bgcolor="white">
<img src="images/duke.waving.gif">

where location of duke.waving.gif is
$GLASSFISH_HOME/domains/domain1/applications/j2ee-modules/hello/image/duke.waving.gif

so relative pathing for src attribute of <img tag does work

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Thu, 6 Aug 2009 10:47:47 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Re: Cannot display image from form-based login jsp
>
> Yes, I realized they are not same.
>
> I tried different combinations. Neither relative(src="images/eah_banner_logo.gif") nor absolute (src="/images/eah_banner_logo.gif") path for login jsp can work.
>
> The home page jsp has to be relative path (src="images/eah_banner_logo.gif").
>
> By the way, what is "FF" in your post `view image` (right-click menu in FF)?
>
> Anyway how to make the login jsp display the image?
> [Message sent by forum member 'henryliu' (henryliu)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359278
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM