On Sep 5, 2:43 pm, Simon Rydberg <[EMAIL PROTECTED]> wrote:
> RequestBuilder requestBuilder = new
> RequestBuilder(RequestBuilder.POST, "/ExcelFileCreator");
The servlet request path should be
GWT.getModuleBaseURL()+"/ExcelFileCreator"
> /**
> * Called when a pending [EMAIL PROTECTED]
> com.google.gwt.http.client.Request} completes
> * normally. Note this method is called even when the status
> code of the
> * HTTP response is not "OK", 200.
> *
> * @param request the object that generated this event
> * @param response an instance of the
> * [EMAIL PROTECTED]
> com.google.gwt.http.client.Response}
> class
> */
> public void onResponseReceived(Request request, Response
> response) {
> // recives the file here as a request??? I can see some data
> in the
> request
> MessageBox.alert("OK");
> }
As the comment says, onResponseReceived() is called for all kinds for
status codes. In your case this is probably a 404 or maybe a 500. See
if the status code is 200. Obviously, the returned Excel file would be
in "response". The data you see in "request" should be your XML.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---