tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehmet Ugur Kuzu (LinkPlus)" <Mehm...@linkplus.com.tr>
Subject RE: BLOB FROM JSP PAGE
Date Thu, 24 Jan 2002 20:30:44 GMT
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>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message