How to use GWT when downloading Files with a Servlet?

后端 未结 1 684
鱼传尺愫
鱼传尺愫 2020-12-31 11:47

I am creating a simple project that will allow me to upload and download files using gwt. i am having trouble with the downloading of files that are on my server.

F

相关标签:
1条回答
  • 2020-12-31 12:15

    On the client side, just create a regular <a href="path/to/servlet"> tag. You can use the Anchor class if you want to dynamically create it. When the user clicks the link, the browser will automatically download the file.

    0 讨论(0)
提交回复
热议问题