Hi Lothar, I thought RPC servlets were always called via a POST and you couldn't change that, whereas if you use a standard HttpServlet you can use a HttpRequest on the client and specify a GET for it.
Surely overriding stuff in a RemoteServiceServlet is more complicated than using HttpRequest? Is there some special reason you do this? gregor On Feb 18, 9:22 am, Lothar Kimmeringer <[email protected]> wrote: > gregor schrieb: > > > Sorry, I misunderstood what you where trying to do. You want the user > > to be able top download the CSV file to their own disk, right? > > > You can't use GWT RPC to do that, > > He's overwriting doGet of a RemoteServiceServlet and let the browser > do a GET-request. So it should work, in fact I do that all the time > and the file-delivery always happens here in the RemoteServiceServlet. > > > and I don't think you can return the > > file as a String either. > > You get a Writer from the Response-parameter passed from the container. > A writer lets you write Strings easily, so it is possible. > > > I think you need a standard HttpServlet that > > writes the CSV file as binary data to the servlet response stream. > > RemoteServiceServlets are standard HttpServlets with an already > implemented doPost-method. But you still can overwrite doGet which > is sufficient for downloading files delivered by that server. > > Regards, Lothar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
