How to enable directory listing in my tomcat

By default the directory listing is disabled.
To enable listing directories please change the value of listing in the web.xml file under [your tomcat directory]/conf from false to true as shown in XML segment belows:

<servlet>
   <servlet-name>default</servlet-name>
   <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>   
   <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>  <!-- change this value from false to true -->
   </init-param>
   <load-on-startup>1</load-on-startup>
</servlet>