You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Sreeni Gali <sr...@gmail.com> on 2005/11/22 23:53:58 UTC

help in reading and displaying the image in velocity.

Hi Group,
 Good evening . I have few requirements as below.
 1) I need to display image in velocity template by reading bytes session
attribute. Can you please guide me how to do in velocity?
 I have done same using jsp as below:
 *response.getOutputStream().write((byte
[])request.getSession().getAttribute("byteSessionAttribute"));*
**
How to do the same in velocity. I am setting the byteSessionAttribute atrry
in session in my struts layer and i wanted to get it diplayed in the
velocity template page.
**
*2)* Assume that we have display images on the page:
 Once we display multiple images on the velocity page , user can click on
any image . Application should be able to display the bigger image of the
selected one.
**
*Can any body help me out in this ..Thanks advance.*
**
*Regards*
*Sreeni.*

Re: help in reading and displaying the image in velocity.

Posted by Will Glass-Husain <wg...@forio.com>.
Hi Sreeeni,

Velocity isn't really a very good tool for processing images as it's a text 
processing language.

Remember too that you can't include an image in the HTML output of a page. 
You need to use an <img> tag.  In my apps, I have a special servlet that 
generates the dynamic images (e.g. graphs).

WILL



----- Original Message ----- 
From: "Sreeni Gali" <sr...@gmail.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Tuesday, November 22, 2005 2:53 PM
Subject: help in reading and displaying the image in velocity.


Hi Group,
 Good evening . I have few requirements as below.
 1) I need to display image in velocity template by reading bytes session
attribute. Can you please guide me how to do in velocity?
 I have done same using jsp as below:
 *response.getOutputStream().write((byte
[])request.getSession().getAttribute("byteSessionAttribute"));*
**
How to do the same in velocity. I am setting the byteSessionAttribute atrry
in session in my struts layer and i wanted to get it diplayed in the
velocity template page.
**
*2)* Assume that we have display images on the page:
 Once we display multiple images on the velocity page , user can click on
any image . Application should be able to display the bigger image of the
selected one.
**
*Can any body help me out in this ..Thanks advance.*
**
*Regards*
*Sreeni.*


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