If a directory does not have one of the welcome-file I want to redirect to a page, not show the subdirectories and files. How could I do it?
Dan Waldner Check the Tomcat documentation to disable directory permissions so that users cannot see the files. This will return a 401 file not found error. To customize this error, or any other of the numbered errors, you can specify how Tomcat handles that in the web.xml file.