0

I want to enhance this question. How can I create File Destination Chooser (as like JFileChooser) in GWT?

I had googled for a long time to get it in GWT. I found GWT FileUpload in most. Any Suggestions for it ?

Community
  • 1
  • 1
Cataclysm
  • 7,592
  • 21
  • 74
  • 123
  • previous my question is only for java. sorry ! really I want to create it in GWT project. So , I can't tag [Tag:java] again. I don't want to use Swing or Applet. – Cataclysm Jan 08 '14 at 09:44

1 Answers1

1

UPDATE: After clearing on question

Well, for this you would need a Download Servlet for the file. There in HttpServletResponse you will fill the content with the file and header with file types and all.

And from your client side call the URL.

For prompting case, it depends upon the browser configuration. You cannot force browser to open location prompt.

For achieving download only, you can refer to download file using gwt

Community
  • 1
  • 1
dhamibirendra
  • 3,016
  • 23
  • 26
  • see http://examples.roughian.com/index.htm#Widgets~FileUpload You can see the usage there – dhamibirendra Jan 08 '14 at 11:00
  • sir ! I don't understand . I am not asking about uploading a file. I mean saving file. Eg: when user click on save buttion , Save destination chooser dialog will appear. – Cataclysm Jan 08 '14 at 11:03
  • yes , that is useful facts for me. But I want to create customize widget for it. You can see *Java JFileChooser* can get. I exactly know what is your answer meaning because I had did in some case of my project.eg: download user information as MS Excel file or pdf or text file. – Cataclysm Jan 08 '14 at 11:21
  • that I meant for the file upload case. I didn't get the question properly earlier – dhamibirendra Jan 08 '14 at 11:23