I 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 I have this workaround, which I dislike: 

@Results({
        @Result(
                name = Action.INPUT,
                location = "login.jsp"
        )
})

What I need is something like @Result.aliases[].
Possible example:

@Results({
        @Result(
                /*name = "success", */
                aliases = {"input", "error"}
        )
        @Result(
                name = "one", 
                aliases = {"two", "three"}
        )
})
public class LoginAction
{
        // ...
}

And this action must maps URLs:
/login.action
/login!input.action
/login!error.action

to pages:
/login.jsp

and:
/login!one.action
/login!two.action
/login!three.action

to:
/login-one.jsp
-- 
View this message in context: 
http://www.nabble.com/Convention-plugin%3A-%40Result-name-aliases--tp25225668p25225668.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to