jsp里写action标签
value="123456" />
/s:action
action配置文件里
action中这么写
public class QueryAction implements Action {
private String statementName;
@Override
public String execute() throws Exception {
System.out.println("=========================================" + statementName);
return SUCCESS;
}
public String getStatementName() {
return statementName;
}
public void setStatementName(String statementName) {
this.statementName = statementName;
}
}
但是statementName为空
如果用http://localhost:8080/camel/loadQueryList.action?statementName="123456"是有值的。
求教各位大神 谢谢