开发者

Problem with download link

I want to insert in a web page a download link.

Here's the code:

开发者_StackOverflow
<li>über <a href="${pageContext.request.contextPath}/handyprogramm/TeamViewer_Setup.exe">diesen Link</a> per Download auf Ihren PC und anschließendem Überspielen auf Ihr Handy (z.B. per Datenkabel, Speicherkarten-Adapter, Bluetooth, WLAN, o.ä.).</li>

When I click on the link, I get an error that says: "The file could not be found".

What am I doing wrong?

Thanks in advance.


It simply means that either the URL is wrong or that the file is actually not there where you expect it is. As hinted in the comment, you'd like to verify if the URL in the generated HTML output is correct. Noted should be that URL's are case sensitive in case of JSP/Servlet containers.

To test the one and other (and to exclude JSP from being suspect), best is start trying downloading the file manually by entering its URL manually in the browser address bar. If you succeeds, then just "translate" the particular URL into the JSP page that way so that it ends up being correct in the generated HTML output.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜