On 30 sep, 11:50, abhiram wuntakal <abhir...@gmail.com> wrote:
> Hi Eric,
>
>  Thanks for that. But I had a similar piece of code earlier, but I had
> *form.setAction(GWT.getModuleBaseURL()
> +"/UploadServlet"); *instead of *form.setAction(GWT.getHostPageBaseURL() +
> "UploadServlet");
>
>   *I was getting the error "The requested resource
> (/GWTFileUpload/UploadServlet) is not available." This is the same error
> which I am getting when I replaced my setAction with the line of code which
> you suggested. Not sure what is the problem. Everything seems to be fine.
>
>   You have any clue about this?

Have you included the servlet and servlet-mapping in your war/WEB-INF/
web.xml? if so, it is relative to getHostPageBaseURL() (well, depends
if your host page is in a subfolder or not, but generally it's not the
case)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to