My guess is that form.setAction("C:/apache-tomcat-6.0.16/webapps/
GWTFileUpload/WEB-
INF/classes/com/abc/pt06/uploadfile/server/UploadServlet"); can't be
correct, this must be a valid URI .
try this.form.setAction(GWT.getHostPageBaseURL() + "MyServlet");

Do you get a 404 error?

On Sep 30, 7:37 am, abhiram wuntakal <[email protected]> wrote:
> Hi All,
>
>   Can someone please suggest something about this? Any possible approach to
> get the fileUpload working?
>
> Thanks,
> Abhiram
>
> On Tue, Sep 29, 2009 at 3:35 PM, abhiram <[email protected]> wrote:
> > Hi All,
>
> >   I had my File Upload module working properly in 1.5.3. But it has
> > not been working after I migrated to GWT 1.7.
> > I realised that "addFormHandler" is deprecated in 1.7 and so I changed
> > it to "addSubmitHandler". Earlier the setAction was set as
>
> >   form.setAction(GWT.getModuleBaseURL() +"/MyServlet");
>
> >  I changed it to
> >  form.setAction("C:/apache-tomcat-6.0.16/webapps/GWTFileUpload/WEB-
> > INF/classes/com/abc/pt06/uploadfile/server/UploadServlet");
>
> >  which is the real path of my servlet after starting the tomcat.
>
> >  But still it does not seem to be working. I just get an "Error on
> > Page" alert in IE and in Firefox, i get an alert like "Firefox does'nt
> > know how to open this address, because the protocol(c) isn't
> > associated with any program."
>
> >  Can someone please suggest what I need to do to get this working. Or
> > some sample code where FileUpload has been working properly in GWT
> > 1.7.
>
> > Regards,
> > Abhiram
--~--~---------~--~----~------------~-------~--~----~
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