Discussions

Web tier: servlets, JSP, Web frameworks: Using URL's for welcome files

  1. Using URL's for welcome files (1 messages)

    Hi,

    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?

    Regards,
    Steve
  2. Using URL's for welcome files[ Go to top ]

    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.