这是我的操作execute()
方法,
@Override
public String execute() throws Exception {
ActionContext aContext = ActionContext.getContext();
aContext.getParameters().put("reqVar1", "reqVar1-Value");
return SUCCESS;
}
我想在 JSP 中获取参数值,如下面的代码,
<s:property value="#parameters.reqVar1" />
但它不起作用。
我看到参数在堆栈上下文中:
如何在 JSP 中获取参数值?