开发者

download a file using grails project [closed]

开发者 https://www.devze.com 2023-01-28 02:25 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why th开发者_运维知识库ey didn't work, and the expected results. See also: Stack Overflow question checklist

Closed 9 years ago.

Improve this question

i have a program with (".exe") type, i want to put a link in my grails project, when the user click it, this program download, how can i do this?


You should use the static-resources plugin for that.


put it in the you server download from there

example:

server name: server(dns name:www.server.com)

file name: file.exe

location on server: /downloads (in webapps in tomcat directory)

<a href="http://www.server.com/file.exe">download</a>

try this it may help you i find it true

0

精彩评论

暂无评论...
验证码 换一张
取 消