You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/03/08 04:25:01 UTC
Re: [off topic?] image retrieving from db
Subject: Re: [off topic?] image retrieving from db
From: "Tea Yu" <te...@hknet.com>
===
I'm storing blob data into the database and using JImageMagick to return
image of different formats on the fly. Each time I have to retrieve an
image included in a page (with other text/html contents), I have to call
the retriever Servlet or jsp from the <img> tag.
However, I did not hardcode the table/id info into the Servlet so
everytime I call the servlet I have to pass the table name and at least
(if the former is hardcoded) the image id to the img tag, like
<img src="imageDbServlet?table=product&id=30"/>
Is there any way to hide the query info? in a session manner or some
other more elegant way in Struts?
Thanks!
Tea Yu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>