tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: BLOB FROM JSP PAGE
Date Thu, 24 Jan 2002 19:49:43 GMT

	No matter how you do it, you will need to request objects.  If you
really don't want to query the database twice, use your session to store the
bytes for the image. 

	Randy


> -----Original Message-----
> From: Mehmet Ugur Kuzu (LinkPlus) [mailto:MehmetK@linkplus.com.tr]
> Sent: Thursday, January 24, 2002 3:31 PM
> To: 'Tomcat Users List'
> Subject: RE: BLOB FROM JSP PAGE
> 
> 
> but this means that  i must create and send a second query to 
> a database
> within in this servlet ,
> rather then this 
> may be i can share my jsp page`s resultset to servlet,
> do you have any idea to achive this,
> sincerely,
> Ugur
> 
> 
> 
> 
> -----Original Message-----
> From: David Wall [mailto:dwall@Yozons.com]
> Sent: Thursday, January 24, 2002 6:49 PM
> To: Tomcat Users List
> Subject: Re: BLOB FROM JSP PAGE
> 
> 
> > Is there a way to display images from database blob fields 
> within only
> jsp,
> > i know that it is impossible because of you can not handle 
> an another
> > outputstream
> > within jsp.
> 
> Your JSP needs to output an IMG tag with a 'src' that points 
> back to your
> application as another GET that will then return the image of 
> interest.,
> generally from a simple servlet that sets the content-type to 
> image/gif or
> whatever the image format is.
> 
> David
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message