Run:
  tag download example
  bean download example
   

View:
  tagDownloadExample.jsp
beanDownloadExample.jsp
 
 
 

File System Download Demos 

These demos illustrate using the file download tag and bean to list the files available for download. The user can choose a file which will then be downloaded by the DownloadServlet. Please make sure you have run the setup instruction on the previous page.

The tag demo is tagDownloadExample.jsp which uses the httpDownload tag to lists the files which have been uploaded to "/tmp/fileaccess" directory and construct links to the DownloadServlet. The links contain the file name and other parameters required by the servlet.

The bean demo is beanDownloadExample.jsp which obtains a list of available files. The links are created in the body of the example.