Hi

I found an solution to force tomcat 4.1.29 to use servlets as welcome files.
My applications web.xml:

<servlet>
        <servlet-name>Root</servlet-name>
        <servlet-class>com.osiris4.servlets.Root</servlet-class>
</servlet>

<servlet-mapping>
        <servlet-name>Root</servlet-name>
        <url-pattern>/root</url-pattern>
</servlet-mapping>

<welcome-file-list>
        <welcome-file>root</welcome-file>
</welcome-file-list>


The problem on this was that tomcat checks for the very existence of the
file "root", before actually invoking the servlet. The trick is to simply
have an empty file "root" in the applications docRoot directory.
If this is a problem for you, simply use another name for that file - e.g.
use the servlets name.

Thanks your answers anyway.

Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to