struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4160) Construct UnknownHandler using Spring
Date Sun, 20 Jul 2014 09:11:38 GMT

    [ https://issues.apache.org/jira/browse/WW-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14067863#comment-14067863
] 

Hudson commented on WW-4160:
----------------------------

SUCCESS: Integrated in Struts-JDK6-develop #64 (See [https://builds.apache.org/job/Struts-JDK6-develop/64/])
WW-4160 Adds UnknownHandlerFactory to allow override (lukaszlenart: rev de5edd875fa766ad6214b7b4aef8daf369d360ea)
* xwork-core/src/main/java/com/opensymphony/xwork2/factory/DefaultUnknownHandlerFactory.java
* core/src/main/resources/struts-default.xml
* xwork-core/src/main/java/com/opensymphony/xwork2/config/providers/XWorkConfigurationProvider.java
* xwork-core/src/main/java/com/opensymphony/xwork2/DefaultUnknownHandlerManager.java
* core/src/main/java/org/apache/struts2/StrutsConstants.java
* xwork-core/src/main/java/com/opensymphony/xwork2/factory/UnknownHandlerFactory.java
* xwork-core/src/main/java/com/opensymphony/xwork2/config/impl/DefaultConfiguration.java
* xwork-core/src/main/java/com/opensymphony/xwork2/ObjectFactory.java
* core/src/main/java/org/apache/struts2/config/DefaultBeanSelectionProvider.java


> 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
>            Assignee: Lukasz Lenart
>            Priority: Minor
>             Fix For: 2.3.18
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message