Results 1 to 3 of 3

Thread: Download file in GWT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    25
    Vote Rating
    1
      0  

    Default Answered: Download file in GWT

    Hello,

    Is there a way I can download a file at a certain location on the server side using GWT?
    I have a grid with a list of files. In one column in the grid I have a "Download" option.

    I need download of the file to be triggered when the user clicks on the "Download" option in the grid.

    Please Help.

    Thanks,
    Pragati

  2. One way to achieve this is when the user clicks on the button open a new window with a link to a servlet with a response of the file type.

    This might be useful to see how a servlet can be setup to cause the browser to download the file:
    http://stackoverflow.com/questions/6...-download-file

    Brandon

  3. #2
    Sencha - Support Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    900
    Answers
    12
    Vote Rating
    26
      0  

    Default

    One way to achieve this is when the user clicks on the button open a new window with a link to a servlet with a response of the file type.

    This might be useful to see how a servlet can be setup to cause the browser to download the file:
    http://stackoverflow.com/questions/6...-download-file

    Brandon

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    25
    Vote Rating
    1
      1  

    Default

    Using a servlet worked for me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •