I know there is something wrong in the entry in my web.xml file but i can't
find it.

Here is the problem :

if i remove the filter mappings, the url '/simple'(please see web.xml below)
runs the servlet correctly. But when i put the filter mappings i get
'resource not available' error.

Not only that, if i have any other servlet entry which has nothing to do
with this filter, they also do not run giving 'resource not available'
error.

tomcat starts without any error message.


<?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/j2ee/dtds/web-app_2_3.dtd";>

<web-app>

  <!-- Define the filters within the Web Application -->

  <filter>
    <filter-name>
      Simple Filter Example
    </filter-name>
    <filter-class>
      SimpleFilter
    </filter-class>
  </filter>


  <!-- Map the filter to a Servlet or URL -->

  <filter-mapping>
    <filter-name>
      Simple Filter Example
    </filter-name>
    <url-pattern>
      /simple
    </url-pattern>
  </filter-mapping>


  <!-- Define the Servlets within the Web Application -->

  <servlet>
    <servlet-name>
      Simple Servlet
    </servlet-name>
    <servlet-class>
      initParm
    </servlet-class>
  </servlet>


  <!-- Define Servlet mappings to urls -->

  <servlet-mapping>
    <servlet-name>
      Simple Servlet
    </servlet-name>
    <url-pattern>
      /simple
    </url-pattern>
  </servlet-mapping>

</web-app>

Thanks

Sameer

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to