It sounds like you're thinking that the image data is somehow embedded in the 
JSP, but this works like any "normal" HTML page. In HTML, you access images by 
making a separate request for them through the IMG element and its src 
attribute. So, what might work in your case is to use the html:img tag to set 
up a request for an image. You can use the html:img tag's name attribute to 
specify a Map that contains request parameters to add to the image request. 
Image requests would be mapped to an image Action that uses your business tier 
to retrieve/generate the image data. The image Action would then set the 
response's content type to something like "image/png", dump the image data 
directly into the response and then return null.

Quoting Mohan Radhakrishnan <[EMAIL PROTECTED]>:

> Hi,
>       I am looking for some advise about rendering images in my JSP pages.
> Could it be done with the help of tag libraries? My tag libraries
> don't connect with the database directly. So I use DTO's. They contain the
> image and data for reports. 
> 
> How do you usually include image data in DTO's ? Is that how it is done?
> The
> graph engine is actually my business tier. It is done this way so that the
> tiers are split and loosely coupled and are connected by a business
> delegate.
> How do you take the image data and render it using tag handlers ?
> 
>  ......in a high-volume list the mail subject makes all the difference 8-)
> bye,
> Mohan
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 


-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to