struts-issues mailing list archives

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

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

                name = Action.INPUT,
                location = "login.jsp"
public class LoginAction {...}

But it would be better to have something like @Result.aliases[].
Concept example:

                /*name = "success", */
                aliases = {"input", "error"}
public class LoginAction {...}

And this action must be mapped to page "login.jsp" on any of these action results: 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message