David,
Take a look at this thread -
http://forums.java.net/jive/thread.jspa?threadID=67073&tstart=15
I'm having the same problem.
Looking at the jee5 tutorials, the only thing I can see is placing my jsp files
and my images in another directory rether than the root directory of the war
file - web. I will try this hopefully tonight and email back.
The web directory is the directory which contains the index.jsp file.
eve
> Date: Wed, 23 Sep 2009 15:25:53 +0100
> From: rasputnik_at_hellooperator.net
> To: users_at_glassfish.dev.java.net
> Subject: Re: Glassfish not displaying Image
>
> Yes, you should probably explain how you're generating the images
>
> (I'm assuming these are auto-generated, rather than static files -
> both tomcat and Glassfish follow the servlet spec, which is pretty clear
> that things in WEB-INF shouldn't be visible).
>
> On Wed, Sep 23, 2009 at 12:37 PM, Eve Pokua <gorgeous65_at_msn.com> wrote:
> > SSpadmin,
> >
> > You are right Tomcat makes it simple to display images.
> >
> > If you can provide some coding of the problems you are having
> > may be some glassfish user or developer can help.
> >
> > Regards
> >
> > eve
> >
> >
> >
> >> Date: Wed, 23 Sep 2009 01:55:37 -0700
> >> From: glassfish_at_javadesktop.org
> >> To: users_at_glassfish.dev.java.net
> >> Subject: Glassfish not displaying Image
> >>
> >> We have written a small Captcha code for web-application, which works fine
> >> in Tomcat 6.0.20.
> >> We ported this code to Glassfish. (Sun GlassFish Enterprise Server v2.1
> >> (9.1.1) build b60e-fcs)
> >> It is noticed that application not displaying the captcha image.It shows
> >> Cross mark in web browser.however it works fine in tomcat.
> >> We changed the imagetype from png to jpg but in vain.
> >> Why this code is not displaying the image in browser via Galssfish though
> >> it works fine in Tomcat?Do we need to do some setting in Glassfish server to
> >> display graphics/image.
> >> [Message sent by forum member 'sspadmin' (sspadmin_at_rediffmail.com)]
> >>
> >> http://forums.java.net/jive/thread.jspa?messageID=365245
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> >> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >>
> >
> > ________________________________
> > View your Twitter and Flickr updates from one place - Learn more!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
--_aca85b0a-3723-4079-998a-de8bb232c985_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
David,<BR>
<BR>
Take a look at this thread -<BR>
<BR>
<A href="
http://forums.java.net/jive/thread.jspa?threadID=67073&tstart=15">
http://forums.java.net/jive/thread.jspa?threadID=67073&tstart=15</A><BR>
<BR>
I'm having the same problem.<BR>
<BR>
Looking at the jee5 tutorials, the only thing I can see is placing my jsp files<BR>
and my images in another directory rether than the root directory of the war<BR>
file - web. I will try this hopefully tonight and email back.<BR>
<BR>
The web directory is the directory which contains the index.jsp file.<BR>
<BR>
eve<BR> <BR>> Date: Wed, 23 Sep 2009 15:25:53 +0100<BR>> From: rasputnik@hellooperator.net<BR>> To: users@glassfish.dev.java.net<BR>> Subject: Re: Glassfish not displaying Image<BR>> <BR>> Yes, you should probably explain how you're generating the images<BR>> <BR>> (I'm assuming these are auto-generated, rather than static files -<BR>> both tomcat and Glassfish follow the servlet spec, which is pretty clear<BR>> that things in WEB-INF shouldn't be visible).<BR>> <BR>> On Wed, Sep 23, 2009 at 12:37 PM, Eve Pokua <gorgeous65@msn.com> wrote:<BR>> > SSpadmin,<BR>> ><BR>> > You are right Tomcat makes it simple to display images.<BR>> ><BR>> > If you can provide some coding of the problems you are having<BR>> > may be some glassfish user or developer can help.<BR>> ><BR>> > Regards<BR>> ><BR>> > eve<BR>> ><BR>> ><BR>> ><BR>> >> Date: Wed, 23 Sep 2009 01:55:37 -0700<BR>> >> From: glassfish@javadesktop.org<BR>> >> To: users@glassfish.dev.java.net<BR>> >> Subject: Glassfish not displaying Image<BR>> >><BR>> >> We have written a small Captcha code for web-application, which works fine<BR>> >> in Tomcat 6.0.20.<BR>> >> We ported this code to Glassfish. (Sun GlassFish Enterprise Server v2.1<BR>> >> (9.1.1) build b60e-fcs)<BR>> >> It is noticed that application not displaying the captcha image.It shows<BR>> >> Cross mark in web browser.however it works fine in tomcat.<BR>> >> We changed the imagetype from png to jpg but in vain.<BR>> >> Why this code is not displaying the image in browser via Galssfish though<BR>> >> it works fine in Tomcat?Do we need to do some setting in Glassfish server to<BR>> >> display graphics/image.<BR>> >> [Message sent by forum member 'sspadmin' (sspadmin@rediffmail.com)]<BR>> >><BR>> >>
http://forums.java.net/jive/thread.jspa?messageID=365245<BR>> >><BR>> >> ---------------------------------------------------------------------<BR>> >> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> >> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> >><BR>> ><BR>> > ________________________________<BR>> > View your Twitter and Flickr updates from one place - Learn more!<BR>> <BR>> ---------------------------------------------------------------------<BR>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> <BR> <br /><hr />
Upgrade to Internet Explorer 8 Optimised for MSN. <a href='
http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U' target='_new'>Download Now</a></body>
</html>
--_aca85b0a-3723-4079-998a-de8bb232c985_--