"Daniel B" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've been scratching my head over how to get multipart data across the
wire,
> and I was wondering if I could get a little help.  Given the following in
my
> .jsp:
>
> <html:form action="/FileUploadSubmit" enctype="multipart/form-data"
> method="POST">
>   <html:file property="file"/>
>   <html:submit/>
> </html:form>
>
> (the "FileUploadSubmit" Action has an ActionForm called "FileUploadForm")
>
> How should I set up my Action and ActionForm?  For instance:
> - What data type should the member "file" be in the ActionForm?
> - Where / when / should I call setMultipartRequestHandler() in the
> ActionForm?
> - How do I make sure the handler gets called correctly?
> - I'm assuming I should be using CommonsMultipartRequestHandler (is this
> true?)
> - How do I customize what happens to the file once it comes in? (i.e.,
> filename, destination directory, etc.)
>
> I haven't been able to find any sample code

You might want to look at the struts-upload sample that is part of the
Struts distribution...

--
Martin Cooper


>, and both of my Struts books
> have been a bit unhelpful (although in general I've been very happy with
> "Struts in Action").  Any help would be tremendously appreciated!
>
> Daniel




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to