struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ketil Holden <>
Subject RE: File Upload into database
Date Tue, 21 Oct 2008 10:55:49 GMT
Have you set enctype on the form element?

Like this:
<s:form action="action" enctype="multipart/form-data" ...


-----Original Message-----
From: Narayana S []
Sent: 21. oktober 2008 12:31
To: Struts Users Mailing List
Subject: Re: File Upload into database

Hi Thanks for your reply,

            but when i submit my form it is not setting value for the upload
properties. this is how my code is ...
-- in jsp
<s:file name="upload" label="Attachment"/>
-- in action
private String uploadContentType;
private String uploadFileName;
private File upload;

and getter setters for these properties. i am using struts 2.1.2. where i am
still missing? remaining properties of the form are getting set, only this
is not working :(
help me

On Tue, Oct 21, 2008 at 12:14 PM, ManiKanta G <> wrote:

> have some info to start.
> ManiKanta

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

View raw message