struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Rezende" <j...@pmbr.net>
Subject Re: How to renderize a image?
Date Wed, 26 May 2004 13:30:31 GMT
Yes, nathan.

A action is so bettet than a servlet or a jsp. But are this the only way?

tks, Paulo

----- Original Message ----- 
From: "Nathan Maves" <Nathan.Maves@Sun.COM>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Wednesday, May 26, 2004 10:16 AM
Subject: Re: How to renderize a image?


> you can use whatever image tag you want.  The real catch is that you 
> will need and action that pulls the info from the db and writes it to 
> the OutputStream in the response.  The have the execute method return 
> null.
> 
> You might end up with a tag that looks like...
> 
> <img src="<c:url value="/CreateChart.do"/>" >
> 
> This is if you use jstl otherwise
> 
> <html:img action="/CreateChart.do" />
> 
> might work but I am not sure.
> 
> 
> nathan
> 
> On May 26, 2004, at 6:57 AM, Paulo Rezende wrote:
> 
> > Friends,
> >
> > I have a image in Oracle Blob field and i want to renderize it my jsp. 
> > Do I need to use <hmtl:image> or <html:img> or this is not the way?
My 
> > form property is a Blob, but i guess that this tags dont support this 
> > class, seemingly they support only a Map. Really I'm helping a friend, 
> > and I thank so any help... Anybody could show me the way?
> >
> > tks, Paulo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message