You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/07/30 21:23:50 UTC

[jira] [Updated] (WW-4160) Construct UnknownHandler using Spring

     [ https://issues.apache.org/jira/browse/WW-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-4160:
------------------------------

    Fix Version/s: 2.3.17
    
> Construct UnknownHandler using Spring
> -------------------------------------
>
>                 Key: WW-4160
>                 URL: https://issues.apache.org/jira/browse/WW-4160
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Spring, XML Configuration
>    Affects Versions: 2.3.15.1
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>             Fix For: 2.3.17
>
>
> I have a custom unknown handler in my struts2 definition (to return a 404 in production if the method is not found).  I would like to have the handler constructed by Spring instead of the xwork container though so that I can have some other logging/debugging resources injected.
> {code}
>     <bean type="com.opensymphony.xwork2.UnknownHandler" name="pageNotFoundUnknownHandler" class="com.mycompany.PageNotFoundUnknownHandler"/>
>     <unknown-handler-stack>
>        <unknown-handler-ref name="pageNotFoundUnknownHandler" />
>     </unknown-handler-stack>
> {code}

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