struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Akins <angryg...@gmail.com>
Subject Putting an Image (in Bytes) on the session
Date Mon, 15 Nov 2010 16:13:45 GMT
This seems like maybe I'm approaching it wrong.. but wondering if it's possible.

I'm wondering if I can put an image, in the form of a byte array, or
stream, that I can read with either a struts tag, jstl, or el

Thinking in my action

session.put("image", image.getBytes());

and in the .jsp

${image}

Thoughts on this, or other ways to do something similar?

-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

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


Mime
View raw message