This sample is to demonstrate how to do vistual directory listing using a tomcat webapp. In other words contents of a external directory anc be mapped and shown in the webapp UI. This sample has functionality of both listing and downloading the given directory content.
Define the virtual directory mapping:
Open the virtualwebapp/WEB-INF/web.xml and modify the following parameter and replace the path with the absolute directory path you want to map.
<param-value>/path/to/virtual/directory/to/be/mapped/</param-value>
e.g. In MS Windows cd CARBON_HOME\samples\VirtualDirectoryListing or in Linux cd CARBON_HOME/samples/VirtualDirectoryListing
e.g. CARBON_HOME\samples\VirtualDirectoryListing>ant or CARBON_HOME/samples/VirtualDirectoryListing$ ant