- Posted by: Steve Sanyal
- Posted on: January 21 2002 20:52 EST
Do welcome-files have to always be concrete files such as .html or .jsp files? I am finding that when using Tomcat 4.0.1, if I specify a servlet mapping as a welcome file, I end up getting a directory listing.
For example, since I am using Struts, I have specified a Struts action as my welcome-file, but Tomcat seems to ignore this altogether and I end up getting a directory listing. If I request the action directly, then I have no problems.
Has anyone faced any similar issues?
Just found out...there is an entry that goes into the web.xml file to state what URL to use to start.
In the DTD I found:
<!ATTLIST welcome-file-list id ID #IMPLIED>
<!ATTLIST welcome-file id ID #IMPLIED>
Let me know if it works.