实现Action属性值注入-struts2教程
public class HelloWorldAction{
private String savePath;
public String getSavePath() { return savePath; }
public void setSavePath(String savePath) { this.savePath = savePath; }
...
}
/images /WEB-INF/page/hello.jsp
通过节点为action的savePath属性注入值为“/images”。
173.5KB
文件大小:
评论区