tomcat 4.0.6 web.xml

Hi,

I have a tomcat 4.0.6 server running on a production environment. My web.xml doesn't seem to be working fine with that. Can any one give me a sample web.xml thats accepted by 4.0.6 tomcat server? However my web.xml is as under.

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app

PUBLIC"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>Web Project</display-name>

<description>

WebProject Description

</description>

<!-- Define servlet-mapped and path-mapped example filters -->

<filter/>

<filter-mapping/>

<listener/>

<servlet>

<servlet-name>SendMailServlet</servlet-name>

<servlet-class>SendMailServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>SendMailServlet</servlet-name>

<url-pattern>/SendMailServlet</url-pattern>

</servlet-mapping>

<taglib>

<taglib-uri/>

<taglib-location/>

</taglib>

<resource-ref/>

<security-constraint/>

<!-- Default login configuration uses form-based authentication -->

<login-config/>

<env-entry>

<env-entry-name/>

<env-entry-value/>

<env-entry-type/>

</env-entry>

<!-- EJB Reference -->

<ejb-ref>

<description/>

<ejb-ref-name/>

<ejb-ref-type/>

<home/>

<remote/>

</ejb-ref>

<!-- Local EJB Reference -->

<ejb-local-ref>

<description/>

<ejb-ref-name/>

<ejb-ref-type/>

<local-home/>

<local/>

</ejb-local-ref>

</web-app>

[2093 byte] By [Sourav123a] at [2007-11-27 8:46:31]
# 1
in the conf directory of your Tomcat installation you will find the default web.xml file. You can copy this file to you web application and use as the basis of a new web.xml.
tolmanka at 2007-7-12 20:49:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...