Skip to main content

[JIRA] Commented: (SERVLET_SPEC-28) @WebServlet annotation does not support the 'enabled' attribute specified by the Servlet 3.0 specification

  • From: "Shing Wai Chan (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (SERVLET_SPEC-28) @WebServlet annotation does not support the 'enabled' attribute specified by the Servlet 3.0 specification
  • Date: Wed, 18 Jan 2012 01:50:24 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/SERVLET_SPEC-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=329260#action_329260
 ] 

Shing Wai Chan commented on SERVLET_SPEC-28:
--------------------------------------------

So having the annotation attribute does not solve your issue, you need a way 
to enable/disable a given servlet in the runtime. In Servlet 3.0, one can 
only modify the servlet registration before or on context initialization.

> @WebServlet annotation does not support the 'enabled' attribute specified 
> by the Servlet 3.0 specification
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SERVLET_SPEC-28
>                 URL: http://java.net/jira/browse/SERVLET_SPEC-28
>             Project: servlet-spec
>          Issue Type: Improvement
>            Reporter: amyroh
>            Assignee: Shing Wai Chan
>
> See http://java.net/jira/browse/GLASSFISH-17721
> "The Servlet 3.0 specification in section 8.2.3 sub part 3 describes "If a 
> servlet is disabled using the enabled element introduced in the web.xml 
> then the servlet will not be available at the url-pattern specified for the 
> servlet".
> The WebServletHandler.java deployment annotation handler does not support 
> then enabled element and it should since it is part of the web.xml 
> specification for the <servlet> element."

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Commented: (SERVLET_SPEC-28) @WebServlet annotation does not support the 'enabled' attribute specified by the Servlet 3.0 specification

Shing Wai Chan (JIRA) 01/18/2012
 
 
Close
loading
Please Confirm
Close