Using a servlet in GWT project

2009-05-15 Thread Scientist
Hi all, I'm working on a GWT-project, and I got stuck in the part where I need to send a file on the server-side to the browser, so a user can download the file. I've done some reading, and found out the best way to do this is to write a servlet which gets called from the project. I've found a pi

Re: Using a servlet in GWT project

2009-05-15 Thread Salvador Diaz
Hi, I answered this yesterday in this post: http://groups.google.com/group/Google-Web-Toolkit/msg/9456d6f4a8ba0574 So here's the servlet code I use: http://code.google.com/p/hellagwt/source/browse/trunk/hellagwt/src/main/java/fr/salvadordiaz/gwt/hellagwt/server/NzbUpload.java And here's the UI c

Re: Using a servlet in GWT project

2009-05-15 Thread Scientist
That's a piece of code to upload a file from client to server if I understand this correctly, in my case it needs to be the other way around. The system writes an XLS-file to the server, and the user needs to download that file to his laptop. Thanks anyway! On May 15, 11:52 am, Salvador Diaz wr

Re: Using a servlet in GWT project

2009-05-15 Thread Salvador Diaz
Take a look at the doGet method ;) I pointed out to the wrong UI class though, this one show a file browser and the user downloads any of the files by clicking on it: http://code.google.com/p/hellagwt/source/browse/trunk/hellagwt/src/main/java/fr/salvadordiaz/gwt/hellagwt/client/views/DownloadsPa