action中:
设置属性并增加get,set方法,给属性赋值后
(如:
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
)
jsp中可直接调用
<s:property value="name" />
action中:
设置属性并增加get,set方法,给属性赋值后
(如:
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
)
jsp中可直接调用
<s:property value="name" />
转载于:https://www.cnblogs.com/mgzy/p/4019210.html