users@glassfish.java.net

RE: Glassfish not displaying Image

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Fri, 25 Sep 2009 20:50:14 +0100

Hello everyon,

 

I got this problem working with the following :

 

<display:column><img src="menjeans.png" alt="Picture"/></display:column>

 

What I really want to do is pick the image data or string from the DB

 

with something like this:

 

<display:column><img src="${bpic}" alt="Picture"/></display:column>

 

bpic being the attribute of the database. I'll look further into this.

 

I also want to put my images in a folder and access it like this-

 

 

<display:column><img src="images/menjeans.png" alt="Picture"/></display:column>

 

This one is not working either.

 

In the long run- I shall be picking it up from the DB like so-

 

display:column><img src="images/${bpic}" alt="Picture"/></display:column>

 

I have another error which I'll post in another thread..

 

 

Thanking you.

 

eve

 

 

 

 

 


 
> Date: Wed, 23 Sep 2009 21:55:11 -0300
> From: rrigoni_at_gmail.com
> To: users_at_glassfish.dev.java.net
> Subject: Re: Glassfish not displaying Image
>
> Your Content Type in servlet responde is correct?
> Regards
> Ronaldo
>
> 2009/9/23, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>:
> > Salut,
> >
> > Eve Pokua wrote:
> >> Hello,
> >>
> >> I've been trying to display an image as well. I get the same x result.
> >>
> >> I'm going to test my application in tomcat to see if it works. If it works
> >> then glassfish may want to consider this further.
> >
> > Can you share a test case? File an issue here:
> >
> > * https://glassfish.dev.java.net/issues/enter_bug.cgi?issue_type=DEFECT
> >
> > Thanks!
> >
> > -- Jeanfrancois
> >
> >
> >>
> >> 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
> >> >
> >>
> >> ------------------------------------------------------------------------
> >> Beyond Hotmail - see what else you can do with Windows Live. Find out
> >> more. <http://clk.atdmt.com/UKM/go/134665375/direct/01/>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
> >
>
> --
> Enviado do meu celular
>
> []'s,
> Ronaldo Rigoni
> http://www.ronaldorigoni.com.br
> Desenvolvedor JEE
> Ministério da Educação - CESPE
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
                                                _________________________________________________________________
MSN straight to your mobile - news, entertainment, videos and more.

--_62adeb6d-0b72-45a9-b3d2-599f15098c7f_
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'>
Hello everyon,<BR>
&nbsp;<BR>
I got this&nbsp;problem working&nbsp;with the following :<BR>
&nbsp;<BR>
&lt;display:column&gt;&lt;img src="menjeans.png" alt="Picture"/&gt;&lt;/display:column&gt;<BR>
&nbsp;<BR>
What I really want to do is pick the&nbsp;image data&nbsp;or string from the&nbsp;DB<BR>
&nbsp;<BR>
with something like this:<BR>
&nbsp;<BR>
&lt;display:column&gt;&lt;img src="${bpic}" alt="Picture"/&gt;&lt;/display:column&gt;<BR>
&nbsp;<BR>
bpic being the attribute of the database.&nbsp; I'll look further into this.<BR>
&nbsp;<BR>
I also want to put my images in a folder and access it like this-<BR>
&nbsp;<BR>
&nbsp;<BR>
&lt;display:column&gt;&lt;img src="images/menjeans.png" alt="Picture"/&gt;&lt;/display:column&gt;<BR>
&nbsp;<BR>
This one is not working either.<BR>
&nbsp;<BR>
In the long run-&nbsp; I shall be picking it up from the DB like so-<BR>
&nbsp;<BR>
display:column&gt;&lt;img src="images/${bpic}"&nbsp; alt="Picture"/&gt;&lt;/display:column&gt;<BR>
&nbsp;<BR>
I have another error which I'll post in another thread..<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanking you.<BR>
&nbsp;<BR>
eve<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<BR>&nbsp;<BR>&gt; Date: Wed, 23 Sep 2009 21:55:11 -0300<BR>&gt; From: rrigoni@gmail.com<BR>&gt; To: users@glassfish.dev.java.net<BR>&gt; Subject: Re: Glassfish not displaying Image<BR>&gt; <BR>&gt; Your Content Type in servlet responde is correct?<BR>&gt; Regards<BR>&gt; Ronaldo<BR>&gt; <BR>&gt; 2009/9/23, Jeanfrancois Arcand &lt;Jeanfrancois.Arcand@sun.com&gt;:<BR>&gt; &gt; Salut,<BR>&gt; &gt;<BR>&gt; &gt; Eve Pokua wrote:<BR>&gt; &gt;&gt; Hello,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I've been trying to display an image as well. I get the same x result.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I'm going to test my application in tomcat to see if it works. If it works<BR>&gt; &gt;&gt; then glassfish may want to consider this further.<BR>&gt; &gt;<BR>&gt; &gt; Can you share a test case? File an issue here:<BR>&gt; &gt;<BR>&gt; &gt; * https://glassfish.dev.java.net/issues/enter_bug.cgi?issue_type=DEFECT<BR>&gt; &gt;<BR>&gt; &gt; Thanks!<BR>&gt; &gt;<BR>&gt; &gt; -- Jeanfrancois<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; eve<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; Date: Wed, 23 Sep 2009 01:55:37 -0700<BR>&gt; &gt;&gt; &gt; From: glassfish@javadesktop.org<BR>&gt; &gt;&gt; &gt; To: users@glassfish.dev.java.net<BR>&gt; &gt;&gt; &gt; Subject: Glassfish not displaying Image<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; We have written a small Captcha code for web-application, which works<BR>&gt; &gt;&gt; fine in Tomcat 6.0.20.<BR>&gt; &gt;&gt; &gt; We ported this code to Glassfish. (Sun GlassFish Enterprise Server<BR>&gt; &gt;&gt; v2.1 (9.1.1) build b60e-fcs)<BR>&gt; &gt;&gt; &gt; It is noticed that application not displaying the captcha image.It<BR>&gt; &gt;&gt; shows Cross mark in web browser.however it works fine in tomcat.<BR>&gt; &gt;&gt; &gt; We changed the imagetype from png to jpg but in vain.<BR>&gt; &gt;&gt; &gt; Why this code is not displaying the image in browser via Galssfish<BR>&gt; &gt;&gt; though it works fine in Tomcat?Do we need to do some setting in<BR>&gt; &gt;&gt; Glassfish server to display graphics/image.<BR>&gt; &gt;&gt; &gt; [Message sent by forum member 'sspadmin' (sspadmin@rediffmail.com)]<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; http://forums.java.net/jive/thread.jspa?messageID=365245<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; ---------------------------------------------------------------------<BR>&gt; &gt;&gt; &gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; &gt;&gt; &gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ------------------------------------------------------------------------<BR>&gt; &gt;&gt; Beyond Hotmail - see what else you can do with Windows Live. Find out<BR>&gt; &gt;&gt; more. &lt;http://clk.atdmt.com/UKM/go/134665375/direct/01/&gt;<BR>&gt; &gt;<BR>&gt; &gt; ---------------------------------------------------------------------<BR>&gt; &gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; &gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; <BR>&gt; -- <BR>&gt; Enviado do meu celular<BR>&gt; <BR>&gt; []'s,<BR>&gt; Ronaldo Rigoni<BR>&gt; http://www.ronaldorigoni.com.br<BR>&gt; Desenvolvedor JEE<BR>&gt; Ministério da Educação - CESPE<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 />View your Twitter and Flickr updates from one place - <a href='http://clk.atdmt.com/UKM/go/137984870/direct/01/' target='_new'>Learn more!</a></body>
</html>
--_62adeb6d-0b72-45a9-b3d2-599f15098c7f_--