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
-~----------~----~----~----~------~----~------~--~---

Reply via email to