tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51464] New: Override DefaultServlet is not working
Date Sat, 02 Jul 2011 09:48:50 GMT
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: dev@tomcat.apache.org
        ReportedBy: murugan.black@gmail.com
    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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message