You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Daniel Le Berre (JIRA)" <ji...@apache.org> on 2012/12/01 17:59:58 UTC

[jira] [Created] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Daniel Le Berre created WW-3933:
-----------------------------------

             Summary: Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
                 Key: WW-3933
                 URL: https://issues.apache.org/jira/browse/WW-3933
             Project: Struts 2
          Issue Type: Improvement
          Components: Dispatch Filter
    Affects Versions: 2.3.7
            Reporter: Daniel Le Berre
            Priority: Minor


Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.

Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508562#comment-13508562 ] 

Lukasz Lenart commented on WW-3933:
-----------------------------------

What about users that would like to use two separated filters: Prepare and Execute (when using Sitemesh) ?
                
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Daniel Le Berre (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508627#comment-13508627 ] 

Daniel Le Berre commented on WW-3933:
-------------------------------------

The only reliable resource on the topic is I guess the Servlet 3.0 specification, chapter 8.2.1 "Modularity of web.xml" page 65.

The idea would be to have a default filter name for struts 2 default filter in the fragment (e.g. org.apache.struts2.filter) with a default class and filter mapping.

The definition of another filter with the same name in the web.xml should take precedence on the fragment:
"4. The web.xml of the web application has the highest precedence when resolving
conflicts between the web.xml, web-fragment.xml and annotations." page 73 of the Servlet 3.0 specification.
                
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3933:
------------------------------

    Fix Version/s: 2.5.x
    
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508566#comment-13508566 ] 

Lukasz Lenart commented on WW-3933:
-----------------------------------

Could you point me to some resource how to override the defaults or change order ?
                
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508566#comment-13508566 ] 

Lukasz Lenart edited comment on WW-3933 at 12/3/12 10:08 AM:
-------------------------------------------------------------

Could you point me to some resource how to overwrite the defaults or change order ?
                
      was (Author: lukaszlenart):
    Could you point me to some resource how to override the defaults or change order ?
                  
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3933) Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers

Posted by "Daniel Le Berre (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508564#comment-13508564 ] 

Daniel Le Berre commented on WW-3933:
-------------------------------------

AFAIK the web-fragment.xml content can be overridden by the final user.
So the idea would be to provide a default filter and to explain how to change that default behavior if needed.
If more people are using separate filters than a unique filter, then that behavior could be the default.

                
> Provide web-fragment.xml for easier deployment on Servlet 3.0 compliant containers
> ----------------------------------------------------------------------------------
>
>                 Key: WW-3933
>                 URL: https://issues.apache.org/jira/browse/WW-3933
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Dispatch Filter
>    Affects Versions: 2.3.7
>            Reporter: Daniel Le Berre
>            Priority: Minor
>             Fix For: 2.5.x
>
>
> Servlet 3.0 specification includes the possibility for libraries to ship web-fragment.xml files in their META-INF directory to contribute some declarations to the main web.xml file.
> Struts 2 only requires the declaration of a filter in the web.xml file to work. When building Servlet 3.0 webapp, the web.xml file is often not used at all.
> It would be nice to ship a web-fragment.xml file in struts 2 that declares the PrepareAndExecute filter to simplify the use of the framework on a servlet 3.0 stack.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira