struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré <jbono...@phpfr.org>
Subject FormFile and display in <html:img ...> tag
Date Wed, 20 Nov 2002 19:36:52 GMT
Hello,

in a form, i get a FormFile object.

This work fine (i display the ContentType, etc).
The file uploaded is a image type file (image/jpg or image/gif, this is
verify in the form bean associate).

I would like to populate a bean with can display in JSP.

For exemple, i have my class that extends Action :

...
pictureForm pForm = (pictureForm)form;
FormFile file = pForm.getPFile();
request.setAttribute("file",file);
...

and in the JSP, i would like to display the image file :

...
<html:img page="..." paramName="..." scope="request"/>
...

I would like that the <html:img...> display the file bean.

Someone has a idea or a sample ?

Best regards ...
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
jbonofre@phpfr.org
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
jbonofre@lug-beziers.org

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


Mime
View raw message