You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Indra Gunawan <ig...@balicamp.com> on 2003/11/16 05:49:33 UTC

Upload File question

Hello,

I am using a multipart form that contains form data and one input type file
to upload data .... I also write a servlet to capture those values , but
strange ... not all form data captured and the stream from input type file
is available ... 

Can I use that combination ? Or should I separate the form data part and
input type file part in another form ... for example popup ...

But if there is a way , I prefer to combine them :)

Thanks

Indra 

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


Re: Upload File question

Posted by Martin Cooper <ma...@apache.org>.
"Indra Gunawan" <ig...@balicamp.com> wrote in message
news:DB51745A6F1DD6118CEA00D0B7B68AB4041C4C72@exchange.balicamp.com...
> Hello,
>
> I am using a multipart form that contains form data and one input type
file
> to upload data .... I also write a servlet to capture those values , but
> strange ... not all form data captured and the stream from input type file
> is available ...

You don't need to write a servlet for that. Struts includes file upload
functionality "out of the box". All you need to do is define the appropriate
fields in your ActionForm.

--
Martin Cooper


>
> Can I use that combination ? Or should I separate the form data part and
> input type file part in another form ... for example popup ...
>
> But if there is a way , I prefer to combine them :)
>
> Thanks
>
> Indra




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