调用struts2 action 的几种
来源:互联网 发布:能用网络发短信吗 编辑:程序博客网 时间:2024/05/18 01:44
1 动态调用action 使用的是!
如:
http://localhost:8080/struts2Test/login!login
struts2Test 项目路径
login action名称
login 是 action的方法名
2 . 使用通配符配置
请求是:
http://localhost:8080/struts2Test/login_login
struts.xml 配置如下
<action name="login_*" class="com.action.LoginAction1" method =“{1}”>
<result name="success">/success.jsp</result>
<result name="fail">/index.jsp</result>
</action>
3.常用请求配置
http://localhost:8080/struts2Test/login
struts.xml
<action name="login*" class="com.action.LoginAction1" method =“login”>
<result name="success">/success.jsp</result>
<result name="fail">/index.jsp</result>
</action>
0 0
- 调用struts2 action 的几种
- Struts2配置action的几种方式
- struts2--关于action的几种方法
- Struts2的Action方法调用
- struts2 的Action获取表单的几种方式
- Struts2的Action中方法的几种访问方式
- struts2中 Action获取表单参数的几种方式
- Struts2中Action获得表单数据的几种方法
- Struts2中Action获得表单数据的几种方法
- Struts2 Action中得到request对象的几种方法.
- struts2中 Action获取表单参数的几种方式
- struts2中 Action获取表单参数的几种方式
- Struts2中Action取得表单数据的几种方法
- struts2中 Action获取表单参数的几种方式
- Struts2集成spring3后action的几种实例方法
- Struts2.x中action的几种配置方法
- struts2的三种调用action的方法
- Struts2调用Action的两种方法以及参数处理
- swift 中跳转web view的两种方法
- alert换行
- IOS AVFoundation--判断设备是否授权
- R语言IBM股票月对数收益率的Egarch模型
- 【Easy】1. Two Sum
- 调用struts2 action 的几种
- 为什么忘记commit也会造成select性能问题
- discuz程序模块source功能处理目录注释
- jquery表单插件 jquery.form.js
- struts2文件上传与错误信息国际化
- Android studio Gradle 常用配置
- Android support design + fragment的使用
- Stereo Matching文献笔记之(一):《On Building an Accurate Stereo Matching System on Graphics Hardware》读后感
- SLAM拾萃(1):octomap