download a file using grails project [closed]
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 questioni 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
精彩评论