Download File GWT

2014-03-03 Thread Davide Micheletti
Hi all.. I need to know how to use DownloadServlet.. I tried to implement it but i don't understand how to continue the code.. here my implementation public class DownloadServlet extends HttpServlet{ protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws

Re: Download File GWT

2014-03-03 Thread JeongHyeon Lee
class DownloadServlet extends HttpServlet { private void getDownloadFile(final HttpServletRequest request, final HttpServletResponse response) { FileVO file = fileService.getFile(request.getParameter(down).toString()); if (file == null) { return; } String ua =

Re: Download file from server to client - w Servlet etc PLEASE?

2012-07-09 Thread MIKE
Hi, I got the following error. Any help please ? HTTP ERROR: 405 HTTP method GET is not supported by this URL RequestURI=/name/Download *Powered by Jetty:// http://jetty.mortbay.org/* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: Download file from server to client - w Servlet etc PLEASE?

2012-06-29 Thread Craig Mitchell
HTML(a href=\ + link + \Download File/a)); } } You can also use Window.open(link, downloadWindow, ); to download the file from an EventListener. Finally you'll need to configure the servlet in either your Module.gwt.xml file (for hosted mode), or in your web.xml

Weird EOF Exception while trying to download file from GWT application

2010-12-23 Thread tarun
Using GWT client on IE8,I am able to download file without any code changes. However on some other computer as soon as I try to write file content on response output stream, I get EOF exception. org.mortbay.jetty.EofException at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760

Re: Weird EOF Exception while trying to download file from GWT application

2010-12-23 Thread Patrick Tucker
to the client. Test Scenarios: Scenario 1 If I hit url of servlet directly, it always give me desired result without any problems. Scenario 2 Using GWT client on IE8,I am able to download file without any code changes. However on some other computer as soon as I try to write file content on response

Re: Download file

2009-10-15 Thread Jeff Chimene
Please don't post the same question more than once - at least, not in the same 5 minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using

Re: Download file

2009-10-15 Thread mikea_59
I'm not doing aything with MIME, I have a simple .csv on the server and I reference the full URL in the window.open() call. Where would I set the MIME type? Are you setting the MIME type on the server? You can either create it in your application or perhaps your server can set it via a

Re: Download file

2009-10-15 Thread Jeff Chimene
On 10/15/2009 08:20 AM, mikea_59 wrote: I'm not doing aything with MIME, I have a simple .csv on the server and I reference the full URL in the window.open() call. Where would I set the MIME type? That would be in some server-dependent configuration. However, after re-reading your posts,

Re: Download file

2009-10-14 Thread mikea_59
to download file from server to client. So I am directly using file path in window.open as shown below Window.open(“d:\result.xls”,_self,); This opens in Firefox as expected however this doesn’t work with IE7. Please let me know if there is any workaround to do this. I need this very

Re: Download file

2009-10-02 Thread ALEXEI BARBONI
minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using file path in window.open as shown below Window.open(“d:\result.xls”,_self

Re: Download file

2009-10-01 Thread ALEXEI BARBONI
question more than once - at least, not in the same 5 minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using file path in window.open

Re: Download file

2009-09-16 Thread sathya
I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using file path in window.open as shown below Window.open(“d:\result.xls”,_self,); This opens in Firefox as expected however this doesn’t work with IE7. Please let me know

Re: Download file

2009-09-16 Thread Ian Bambury
Please don't post the same question more than once - at least, not in the same 5 minutes. Ian http://examples.roughian.com 2009/9/16 sathya sathyavik...@gmail.com I am having same problem in GWT 1.7. In my application, I need to download file from server to client. So I am directly using

Re: Download file

2009-09-03 Thread chandrahas koyari
Yes you have to create a GWT hyperlink and point it to the resource. On Sep 2, 6:28 pm, ALEXEI BARBONI alexeitel...@gmail.com wrote: Hi chandrahas, thanks for the answer I've been out from work last week. Now I have to create a way to the user of my application make a download of a file

Re: Download file

2009-09-02 Thread ALEXEI BARBONI
Hi chandrahas, thanks for the answer I've been out from work last week. Now I have to create a way to the user of my application make a download of a file that is in the server. I know the exactly location of the file and its name. But I don't understand how to create a link (would be a GWT

Re: Download file

2009-08-25 Thread chandrahas koyari
There are two general methods to achieve it 1. Create a link which directly point to that resource (file) 2. Point to a Servlet which respond with a file (by using getResourceAsFile() ) On Aug 25, 2:50 am, Alexei Telles alexeitel...@gmail.com wrote: Hi... I need to create a link in my web

Download file

2009-08-24 Thread Alexei Telles
Hi... I need to create a link in my web application where the user will download a file that is in my server. I was searching for something in the web, but I could not find something about. Is there any GWT tool that allow me to develop a link in my application to make a download from the

Re: How to use Servlets to download file to browser?

2009-03-29 Thread georgopoulos.georg...@gmail.com
see: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9b59ee258f01d5bb/8063d3017d565594?q=#8063d3017d565594 On Mar 24, 10:06 pm, vroom_vroom slabarb...@gmail.com wrote: Hello, I know this topic has been discussed in a few threads. I have attempted to ask my questions in

Re: How to use Servlets to download file to browser?

2009-03-29 Thread Magius
On Mar 25, 2:58 am, Thomas Broyer t.bro...@gmail.com wrote: On 24 mar, 21:53, vroom_vroom slabarb...@gmail.com wrote: Surprizingly, keeping all code the same with the exception of the client side...and changing all that code to just: Window.open(/exportExcel, _self, ); actually

How to use Servlets to download file to browser?

2009-03-24 Thread vroom_vroom
Hello, I know this topic has been discussed in a few threads. I have attempted to ask my questions in those but for some reason they are not posting, so I had to create this new one. I read documentation and other posts but still confused on how to do this. File download is very simple in normal

Re: How to use Servlets to download file to browser?

2009-03-24 Thread lukehashj
This looks like an operation that should use an RPC. This may help you: http://roberthanson.blogspot.com/2006/06/trivial-gwt-example.html On Mar 24, 1:06 pm, vroom_vroom slabarb...@gmail.com wrote: Hello, I know this topic has been discussed in a few threads. I have attempted to ask my

Re: How to use Servlets to download file to browser?

2009-03-24 Thread vroom_vroom
Thanks lukehashj, I started out trying to do this with RPC, but had no luck so now I tried this HTTPRequest method. I am begining to think that neither way is possible because they are both making asynchronous calls. Maybe I need to figure out how to make a normal hyperlink call my servlet as in

Re: How to use Servlets to download file to browser?

2009-03-24 Thread vroom_vroom
Surprizingly, keeping all code the same with the exception of the client side...and changing all that code to just: Window.open(/exportExcel, _self, ); actually works. However, in hosted mode even though the file is created and my servlet is hit I get the error: [ERROR] Unable to find

Re: How to use Servlets to download file to browser?

2009-03-24 Thread Thomas Broyer
On 24 mar, 21:53, vroom_vroom slabarb...@gmail.com wrote: Surprizingly, keeping all code the same with the exception of the client side...and changing all that code to just: Window.open(/exportExcel, _self, ); actually works. Your RequestBuilder in the previous code snippet would create

Re: How download file clicking in another component?

2008-12-22 Thread Romeryto Lira
Any idea??? Please =D. -- Se um dia tiver que escolher entre o mundo e o amor... Lembre-se: Se escolher o mundo, ficará sem o amor, mas se escolher o amor, com ele conquistará o mundo. (Albert Einstein)

Re: Download file from server to client - w Servlet etc PLEASE?

2008-09-12 Thread Jason Morris
. public class MyEntryPoint implements EntryPoint { public void onModuleLoad() { String link = GWT.getModuleBaseURL() + servlet/myfiledownload; RootPanel.get().add(new HTML(a href=\ + link + \Download File/a)); } } You can also use Window.open(link

Re: Download file from server to client - w Servlet etc PLEASE?

2008-09-12 Thread Cerberus
+ \Download File/a));         } } You can also use Window.open(link, downloadWindow, ); to download the file from an EventListener. If you just want to let the browser pop up a save-as-window, you can also do the following: In the HTML where the GWT-application resides put in the following

Re: Download file from server to client - w Servlet etc PLEASE?

2008-09-12 Thread Joe Cole
;                 RootPanel.get().add(new HTML(a href=\ + link + \Download File/a));         } } You can also use Window.open(link, downloadWindow, ); to download the file from an EventListener. Finally you'll need to configure the servlet in either your Module.gwt.xml file (for hosted mode

Re: Download file with GWT

2008-09-11 Thread Simon Rydberg
in a RequestCallback. And then nothing happens, except that the status of the responce is OK with code 200.. I want the user to see the download file form when the responce comes. I have searched this group and via google with an answer to my problem. Found some answers when you are making a GET-request

Re: Download file with GWT

2008-09-11 Thread Folke
, creates, in my case an excel file and then the client recives the responce in a RequestCallback. And then nothing happens, except that the status of the responce is OK with code 200.. I want the user to see the download file form when the responce comes. I have searched this group and via google

Re: Download file with GWT

2008-09-11 Thread Reinier Zwitserloot
and it recives all the data, creates, in my case an excel file and then the client recives the responce in a RequestCallback. And then nothing happens, except that the status of the responce is OK with code 200.. I want the user to see the download file form when the responce comes. I have searched

Re: Download file with GWT

2008-09-11 Thread Jason Essington
Number 1 is actually very important. If you are going to use Window.open it has to be done as a direct result of a user action, otherwise popup blockers will prevent the window from being opened. This means that you can't place the Window.open command in a callback or any kind of deferred

Download file from server to client - w Servlet etc PLEASE?

2008-09-11 Thread JohnnyGWT
I've seen several discussions on how to download a file to the client. All contain bits of code but no complete examples. FileUpload is fine easy using Apache commons stuff. Can someone PLEASE provide some examples etc for downloading a file to the client? In my scenario I have to send a newly