I'm trying to have Tomcat serve up a directory listing if a file listed in the <welcome-file-list> doesn't exist. I have custom files there that will get passed to my servlet if the normal HTML or JSP files don't exist.

In Tomcat 6, this seemed to work nicely. I have my files listed in the welcome file list and if they didn't exist, I'd get a directory listing like I wanted. But, in Tomcat 7, as soon as Tomcat sees that I have a custom file in my <welcome-file-list>, it simply hands off the request to my servlet and I get a 404 from my servlet instead of a directory listing from Tomcat's "default" servlet.

Is it possible to have Tomcat 7 check for the existence of a file before it passes a request to my servlet? That way I could get the directory listing from the default servlet?

I'm just using the built-in Coyote Web server on both TC6 and TC7, so no external web server should be complicating things.

Any direction on this would be greatly appreciated.

Thanks in advance!

--
Warm Regards,
Jordan Michaels

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to