Client side Download? Need user to be able to download files!
Posted on 2009-07-02
I am building a web application using Java, JSF, IceFaces, and Apache Tomcat.
In this application, at some point I need the user to be able to download a file uploaded on to the server. I have tried a few examples online but none of them have been of success.
Essentially, the user should be able to open/download the file when they click its link (usually a commandLink tag or anything similar). I have some knowledge about this topic. The examples I saw online led to the browser handling the downloading (like FireFox and IE prompting a user to either "save" or "open" the file in a pop-up box). That or anything similar would be great.
Please help me complete this task by a useful sample code, instructions, and/or some website links.
Thanks in advance!