struts2从零开始(二)
知识点:1、动态action
2、值栈
3、web中怎么拿web对象
1、动态action的实现
1.1、直接在struts.xml中配置action节点的method属性为action中的方法名
jsp代码:
1.3、在页面上的form表单使用action!method来指定action中的特定方法
struts.xml代码:
2、值栈(存放值的栈区)
2.1、它存放的作用域是request
2.2、
3、web中怎么拿web对象
3.1、非IOC
private HttpServletRequest httpServletRequest; public void setServletRequest(HttpServletRequest arg0) {this.httpServletRequest=arg0;}
源码下载请点这里: