Mon3y, it is imageUpload.do (that's how my Spring controllers are
defined).
@RequestMapping("/imageUpload.do")
        public String processImageUpload(
                        @RequestParam("imageName") String imageName,
                        @RequestParam("description") String description,
                        @RequestParam("image") MultipartFile image,
                        @RequestParam("propertyId") String propertyId ) throws 
IOException
{

                log.debug("Image: " + image);
                log.debug("Original file name: " + image.getOriginalFilename());
                log.debug(new String(image.getBytes()));
                return "redirect:/index.jsp";

        }

On Oct 9, 2:53 am, mon3y <[EMAIL PROTECTED]> wrote:
> Are you sure you need that "ImageUpload.do");
> should it not be "ImageUpload"); ??
>
> On Oct 9, 8:21 am, mon3y <[EMAIL PROTECTED]> wrote:
>
> > Does that Window.alert pop up?
>
> > If not:
> > 1)Did you map the servlet in  your xml?
> > 2) There's an error on your server side
> > 3)It doesn't find your server class that handles the upload
>
> > If it does:
> > *shrug*
>
> > On Oct 9, 6:48 am,YB<[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > My file upload not submitting. Form handler is printing out the debugs
> > > when i click submit, but the server is not registering any activity.
> > > No errors in the log on client or server.
>
> > > the code:
> > > final FormPanel form = new FormPanel();
> > >                 form.setAction(GWT.getModuleBaseURL() + "ImageUpload.do");
> > >             form.setEncoding(FormPanel.ENCODING_MULTIPART);
>
> > >                 form.setMethod(FormPanel.METHOD_POST);
> > >             VerticalPanel panel = new VerticalPanel();
> > >             form.setWidget(panel);
>
> > >             FileUpload upload = new FileUpload();
> > >             upload.setName("uploadFormElement");
> > >             panel.add(upload);
> > >             panel.add(new Button("Submit it !!!!", new ClickListener() {
> > >                 public void onClick(Widget sender) {
> > >                         System.out.println("onClick() called");
> > >                         form.submit();
> > >                 }
> > >             }));
>
> > >             form.addFormHandler(new FormHandler() {
> > >                 public void onSubmit(FormSubmitEvent event) {
> > >                         System.out.println("form handler onSubmit() 
> > > invoked");
> > >                         System.out.println("event: " + event);
> > >                         System.out.println("event.isCanceled: " +
> > > event.isCancelled());
> > >                 }
> > >                 public void onSubmitComplete(FormSubmitCompleteEvent 
> > > event) {
> > >                     Window.alert(event.getResults());
> > >                 }
> > >             });
--~--~---------~--~----~------------~-------~--~----~
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