struts-user mailing list archives

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

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();

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
Membre fondateur du LUG Béziers

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message