You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alex Siman <al...@gmail.com> on 2009/08/31 17:47:35 UTC
Convention plugin: @Result name aliases?
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org