struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ketil Holden <Ketil.Hol...@invenia.no>
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 [mailto:narayanasgs1@gmail.com]
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 <go4mani@gmail.com> wrote:

> http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
>
> have some info to start.
>
> ManiKanta
>

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


Mime
View raw message