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

Lukasz Lenart updated WW-3233:
------------------------------

    Fix Version/s: 3.x
    
> @Result name aliases
> --------------------
>
>                 Key: WW-3233
>                 URL: https://issues.apache.org/jira/browse/WW-3233
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Convention
>    Affects Versions: 2.1.6
>            Reporter: Alex Siman
>            Priority: Minor
>             Fix For: 3.x
>
>
> Suppose we have LoginAction which maps to "login.jsp". How to use the same 
> JSP for "input" (or whatever else) result w/o using of result location? For 
> now we do:
> @Results({
>         @Result(
>                 name = Action.INPUT,
>                 location = "login.jsp"
>         )
> })
> public class LoginAction {...}
> But it would be better to have something like @Result.aliases[].
> Concept example:
> @Results({
>         @Result(
>                 /*name = "success", */
>                 aliases = {"input", "error"}
>         )
> })
> public class LoginAction {...}
> And this action must be mapped to page "login.jsp" on any of these action 
> results: 
> "success"
> "input"
> "error"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to