users@glassfish.java.net

RE: Glassfish not displaying Image

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Wed, 23 Sep 2009 15:38:09 +0100

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>
&nbsp;<BR>
Take a look at this thread -<BR>
&nbsp;<BR>
<A href="http://forums.java.net/jive/thread.jspa?threadID=67073&amp;tstart=15">http://forums.java.net/jive/thread.jspa?threadID=67073&amp;tstart=15</A><BR>
&nbsp;<BR>
I'm having the same problem.<BR>
&nbsp;<BR>
Looking at the jee5 tutorials, the only thing&nbsp;I can see is placing my&nbsp;jsp files<BR>
and my images in another directory&nbsp;rether than the root directory of the war<BR>
file - web. I&nbsp;will try this hopefully tonight and email back.<BR>
&nbsp;<BR>
The web directory is the directory which contains the index.jsp file.<BR>
&nbsp;<BR>
eve<BR>&nbsp;<BR>&gt; Date: Wed, 23 Sep 2009 15:25:53 +0100<BR>&gt; From: rasputnik@hellooperator.net<BR>&gt; To: users@glassfish.dev.java.net<BR>&gt; Subject: Re: Glassfish not displaying Image<BR>&gt; <BR>&gt; Yes, you should probably explain how you're generating the images<BR>&gt; <BR>&gt; (I'm assuming these are auto-generated, rather than static files -<BR>&gt; both tomcat and Glassfish follow the servlet spec, which is pretty clear<BR>&gt; that things in WEB-INF shouldn't be visible).<BR>&gt; <BR>&gt; On Wed, Sep 23, 2009 at 12:37 PM, Eve Pokua &lt;gorgeous65@msn.com&gt; wrote:<BR>&gt; &gt; SSpadmin,<BR>&gt; &gt;<BR>&gt; &gt; You are right Tomcat makes it simple to display images.<BR>&gt; &gt;<BR>&gt; &gt; If you&nbsp;can provide some coding of the problems you are having<BR>&gt; &gt; may be some glassfish user or developer can help.<BR>&gt; &gt;<BR>&gt; &gt; Regards<BR>&gt; &gt;<BR>&gt; &gt; eve<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; Date: Wed, 23 Sep 2009 01:55:37 -0700<BR>&gt; &gt;&gt; From: glassfish@javadesktop.org<BR>&gt; &gt;&gt; To: users@glassfish.dev.java.net<BR>&gt; &gt;&gt; Subject: Glassfish not displaying Image<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; We have written a small Captcha code for web-application, which works fine<BR>&gt; &gt;&gt; in Tomcat 6.0.20.<BR>&gt; &gt;&gt; We ported this code to Glassfish. (Sun GlassFish Enterprise Server v2.1<BR>&gt; &gt;&gt; (9.1.1) build b60e-fcs)<BR>&gt; &gt;&gt; It is noticed that application not displaying the captcha image.It shows<BR>&gt; &gt;&gt; Cross mark in web browser.however it works fine in tomcat.<BR>&gt; &gt;&gt; We changed the imagetype from png to jpg but in vain.<BR>&gt; &gt;&gt; Why this code is not displaying the image in browser via Galssfish though<BR>&gt; &gt;&gt; it works fine in Tomcat?Do we need to do some setting in Glassfish server to<BR>&gt; &gt;&gt; display graphics/image.<BR>&gt; &gt;&gt; [Message sent by forum member 'sspadmin' (sspadmin@rediffmail.com)]<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; http://forums.java.net/jive/thread.jspa?messageID=365245<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ---------------------------------------------------------------------<BR>&gt; &gt;&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; &gt;&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; &gt;&gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; View your Twitter and Flickr updates from one place - Learn more!<BR>&gt; <BR>&gt; ---------------------------------------------------------------------<BR>&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; <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_--