I think the apache commons file upload project is usually used.
http://commons.apache.org/fileupload/using.html

On Tue, Feb 10, 2009 at 4:08 PM, [email protected] <
[email protected]> wrote:

>
> Hi guys,
>
> i've got some trouble with FormPanel and FileUpload. On the client
> side I would like to provide a possibility to upload .jar files.
> But the thing I don't understand: How can I send this .jar file to my
> server? Is there any possibility to send a file to a servlet on server
> side or what are my options?
>
> My current code fragment looks like the follows:
>
>                final FormPanel form = new FormPanel();
>                form.setAction("/uploadHandler");
>                form.setEncoding(FormPanel.ENCODING_MULTIPART);
>                form.setMethod(FormPanel.METHOD_POST);
>
>                visualComponent.add(new FileUpload());
>
>                // Add an event handler to the form.
>                form.addFormHandler(new FormHandler()
>                {
>                        public void onSubmit(FormSubmitEvent event)
>                        {
>                        }
>
>                        public void onSubmitComplete(FormSubmitCompleteEvent
> event)
>                        {
>                        }
>                });
>
> I would be very glad if anybody can help me.
> Thanks.
>
> kdahm
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to