How can I list all the files in folder on tomcat?
问题 I have got a folder with many excel documents in it on tomcat and i want those files to be available when i got go the that folder's url in the browser (eg http;//localhost:8080/myfolder) at the moment when i try to access a folder i get a 404 error. by if i try to access a file that is in that folder, it works. 回答1: The 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),