How can I enable the directory indexing so the complete
war file content will show in root directory?
DefaultServlet of Tomcat is by default configured to not show directory listings. You need to open Tomcat's own
/conf/web.xml file (look in Tomcat installation folder), search the
<servlet> entry of the
DefaultServlet and then change its listings initialization parameter
Note: These changes will affects all folders of your web application.
If directory listing requires for some particular folder, you should write some Servlet code by yourself