I'm not to familiar with the "fitting content type", you maybe show me a clip of sample code? Does this then return the file as a bytestream or something? Also, because this new servlet I will have made will only be reference with some servlet mapping in the web.xml file, will the still work in hosted mode?
As for using the RPC servlet, I don't see how doGet solves my problem. How is it fundamentally different form the doPost method used the the RPC? And I what I need to know is even if i did use either of these methods, on a high level, how does the file get passed from the server to the client? I would feel comfortable diving right into either these without at least having a vague understanding of what was happening. On Sep 27, 5:10 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > Ned Racine schrieb: > > > I also want to graph the > > results, and my original intention was to just save a .png of the > > graph in the public folder, but this is where I get hung up. I cannot > > get a reference to the public folder path, which I need for the client > > to see the file. > > Another way would be to call a servlet that is returning the picture > with fitting content-type. The servlet can be placed at the same > place where you RPC-servlet resides (adding it to the web.xml and > the GWT.xml-file for hosted mode). > > You can also implement it in the RPC-servlet by implementing > doGet (the RPC-mechanism works with POST) reducing the number > of servlets needed for your application. > > > I have done the exact same thing using Apache Struts > > before, but now that I'm using GWT I can't figure this out. Ideally I > > could find a solution where this would work in both web and hosted > > mode, but web mode would be the more important of the two obviously. > > The technique I described works in both modes and I use it here > for the download of SQL-results as CSV-files and other stuff. > > 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 -~----------~----~----~----~------~----~------~--~---
