struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Siman (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3233) @Result name aliases
Date Wed, 02 Sep 2009 20:24:24 GMT
@Result name aliases
--------------------

                 Key: WW-3233
                 URL: https://issues.apache.org/struts/browse/WW-3233
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - Convention
    Affects Versions: 2.1.6
            Reporter: Alex Siman
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message