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, and I don't think you can return the file as a String either. I think you need a standard HttpServlet that writes the CSV file as binary data to the servlet response stream. There are examples of file download servlets in the group, and around the net. You may also need to adjust the response header so the browser knows it should open the save file dialog when it receives the response. On Feb 17, 8:58 pm, ytbryan <[email protected]> wrote: > thanks for the reply. but how do i prompt the user through save as > dialog box from the client side? > > lothar, it is String. sorry i missed that out.. i write it as a csv > file > > On Feb 17, 2:58 pm, Lothar Kimmeringer <[email protected]> wrote: > > > ytbryanschrieb: > > > > but i got this error when i call it from my client class. > > > [...] > > > > The website is encountering problems. > > > There might be a typing error in the address. > > > > What you can try: > > > Check your Internet connection. Try visiting another website to > > > make sure you are connected. > > > > Retype the address. > > > > Go back to the previous page. > > > > More information > > > > This problem can be caused by a variety of issues, including: > > > > Internet connectivity has been lost. > > > The website is temporarily unavailable. > > > The Domain Name Server (DNS) is not reachable. > > > The Domain Name Server (DNS) does not have a listing for the website's > > > domain. > > > more interesting would be the error-message residing in the > > log-file of the webserver. > > > > PrintWriter out = response.getWriter(); > > > FileWriter fw = new FileWriter(filename); > > > Why do you write into a file? What is filename? > > > 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 -~----------~----~----~----~------~----~------~--~---
