let @params support valuestack
------------------------------
Key: WW-3052
URL: https://issues.apache.org/struts/browse/WW-3052
Project: Struts 2
Issue Type: Improvement
Components: Plugin - Convention
Affects Versions: 2.1.6
Reporter: zha zhengyin
Sorry for my poor english! :)
In XML result definition, We can use ${paramName} to get a value in ValueStack
, it is useful. but in Convention plugin, using @params annotation can only
using some literal string for parameter's value. let @params retrieve value
from the valuestack if the format of value part in @params like ${paramName},
like this:
public class MyAction extends BaseAction {
private String produtId;
public void setProductId(String id){...}
@Action(results = { @Result(name = "success", location = "list-item.action",
type = "redirectAction",params={"produtId","${produtId}"})})
public String execute()
{
return SUCCESS;
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.