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-4590) Allow to use multiple names in result
Date Thu, 21 Jan 2016 08:14:40 GMT

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

Hudson commented on WW-4590:
----------------------------

SUCCESS: Integrated in Struts-JDK7-master #414 (See [https://builds.apache.org/job/Struts-JDK7-master/414/])
WW-4590 - Allow to use multiple names in result (aleksandr.7m: rev 087cf610abcd262980a41c30a2f9360aa3f416e1)
* plugins/convention/src/test/java/org/apache/struts2/convention/DefaultResultMapBuilderTest.java
* core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultsTest.java
* plugins/convention/src/test/java/org/apache/struts2/convention/PackageBasedActionConfigBuilderTest.java
* core/src/main/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java
* plugins/convention/src/main/java/org/apache/struts2/convention/DefaultResultMapBuilder.java
* plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/ActionLevelResultsNamesAction.java
* core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-names.xml


> Allow to use multiple names in result
> -------------------------------------
>
>                 Key: WW-4590
>                 URL: https://issues.apache.org/jira/browse/WW-4590
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Convention, XML Configuration
>    Affects Versions: 2.3.24
>            Reporter: Aleksandr Mashchenko
>            Assignee: Aleksandr Mashchenko
>             Fix For: 2.5
>
>
> Allow to use multiple values in {{result}} tag {{name}} attribute and in {{Result}} annotation
{{name}}.
> So this typical configuration:
> {code:xml}
> <action name="save">
>     <result>success.jsp</result>
>     <result name="error">input-form.jsp</result>
>     <result name="input">input-form.jsp</result>
> </action>
> {code}
> Can be shorten to that:
> {code:xml}
> <action name="save">
>     <result>success.jsp</result>
>     <result name="error, input">input-form.jsp</result>
> </action>
> {code}
> And this annotations:
> {code:java}
> @Action(results = {
>     @Result(name="error", location="input-form.jsp"),
>     @Result(name="input", location="input-form.jsp"),
>     @Result(name="success", location="success.jsp")
> })
> {code}
> To that:
> {code:java}
> @Action(results = {
>     @Result(name="error, input", location="input-form.jsp"),
>     @Result(name="success", location="success.jsp")
> })
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message