基于注解的Struts2 的 @action跳转
来源:互联网 发布:mac如何隐藏dock栏 编辑:程序博客网 时间:2024/06/16 05:13
1.最基本的@action注解
@Controller
@Scope(value = "prototype")
@ParentPackage(value = "nocheckLogin")
@Namespace("/home/hellovelocity")
此注解位于class之前,
@Action(value="toHome",results={@Result(name="success",location="/views/hellovelocity.vm")})
此为action注解
访问路径为 http://localhost:8080/ppt-mobile-site/home/hellovelocity/toHome.do
2.跳转到另外一个action
@Action(value="toTest",results={@Result(name="success",type="redirect",location="/home/hellovelocity/toHome.do")})
只需更改action注释即可,此action将跳转至上面的action
访问路径为 http://localhost:8080/ppt-mobile-site/home/test/toTest.do
0 0
- 基于注解的Struts2 的 @action跳转
- 基于struts2 通过注解跳转到后台action的方法
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置(一)
- Struts2基于注解的Action配置(二)
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- Struts2基于注解的Action配置
- postman & rest easy
- IMS
- nodejs+mongodb系列教程之(1/5)--开篇总述
- 关于Oracle中in和exists的区别
- Ubuntu 14.04 使用速度极快的Genymotion 取代蜗牛速度的原生AVD模拟
- 基于注解的Struts2 的 @action跳转
- CocosBuilder使用总结
- c++学习之new int()和new int[]的区别
- android权限全记录
- Leetcode198: Minimum Height Trees
- unity3d 使用GL 方式画线
- fedora 23下中文输入法Unable to keep Input Method runjning
- Android 线程优先级设置方法
- 高精度乘法