You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/07/02 11:48:50 UTC

DO NOT REPLY [Bug 51464] New: Override DefaultServlet is not working

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


DO NOT REPLY [Bug 51464] Override DefaultServlet is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51464

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-07-02 10:20:34 UTC ---
Bugzilla is not a support forum. Please use the users mailing list.

-- 
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