File upload is a servlet, not an RPC call. As such all it can return is html/text.
In my applications, I store the File object or whatever object I parsed the file into in a session attribute. The servlet returns "OK" from a successful file upload or a text error message--maybe an Exception message--to my client. The SubmitComplete method reads the string. If it's "OK" I call an RPC method to retrieve the object. On Tuesday, November 20, 2012 8:40:50 AM UTC-5, sreenivas wrote: > > Hi Geeks, > > I am able upload the file to the server and construct the object that is > required from file contents , but I am not getting how to send this object > back to the client which invoked upload function. My service method is > public void service(httpRequest, httpResponse). How can i send this object > back to the client. Can somebody please help? > > Thanks, > Sreenivas > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3lE-2NrxEKMJ. 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.
