开发者

download a file using grails project [closed]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜