You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2023/06/28 07:00:00 UTC
[jira] [Updated] (WW-3233) @Result name aliases
[ 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: 6.4.0
(was: 6.2.0)
> @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: 6.4.0
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)