https://issues.apache.org/bugzilla/show_bug.cgi?id=51464

             Bug #: 51464
           Summary: Override DefaultServlet is not working
           Product: Tomcat 6
           Version: 6.0.32
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


we were developing a spring application. tomcat allows those DELETE,PUT
methods.
To disable those methods, We tried to override those methods in DefaultServle
in Catalina in our web.xml but it doesn't work. The code changes as like below.


    <servlet>
        <servlet-name>DefaultNoListing</servlet-name>
       
<servlet-class>org.apache.catalina.servlets.overrided.Overrided_DefaultServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>readonly</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
        </servlet>

        <servlet-mapping>
        <servlet-name>DefaultNoListing</servlet-name>
        <url-pattern>/</url-pattern>
        </servlet-mapping>


or please suggest me with alternative solution.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to