users@glassfish.java.net

Re: Glassfish not displaying Image

From: Dick Davies <rasputnik_at_hellooperator.net>
Date: Wed, 23 Sep 2009 15:53:26 +0100

I think perhaps you don't understand how context roots and relative links work?
It has nothing to do with Glassfish, I don't think.

On Wed, Sep 23, 2009 at 3:38 PM, Eve Pokua <gorgeous65_at_msn.com> wrote:
> 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
>>
>
> ________________________________
> Upgrade to Internet Explorer 8 Optimised for MSN. Download Now