struts2通配符配置action及ajax响应配置
来源:互联网 发布:发票网上认证软件 编辑:程序博客网 时间:2024/06/04 00:24
<action name="front/*/*/*" method="{2}" class="front.{1}Action"> <result name="ajaxSuccess" type="json"> <param name="id">{3}</param> <param name="ignoreHierarchy">false</param> <param name="excludeNullProperties">true</param> <param name="callbackParameter">callback</param> <param name="excludeProperties">.*hibernateLazyInitializer</param><param name="excludeProperties">.*hibernateLazyInitializer,actionErrors,actionMessages,errors,fieldErrors,locale,errorMessages</param> </result> <interceptor-ref name="frontDefaultInterceptor"></interceptor-ref></action>
例如:请求访问:tm/login/test/ 则会访问 front.loginAction 的test(){...}方法 。
有些方法访问需要ajax返回, 配置可以统一为ajaxSuccess,则 return "ajaxSuccess"; 返回。
0 0
- struts2通配符配置action及ajax响应配置
- Struts2 Action配置通配符
- Struts2使用通配符配置action
- Struts2的Action配置通配符
- struts2中Action配置之通配符配置
- Struts2中Action通配符的配置
- Struts2笔记14 action通配符配置
- Struts2配置详解_配置Action之通配符映射
- Struts2配置详解_配置Action之通配符映射
- 【Struts2学习笔记】struts2.5使用通配符配置action跳转
- Struts2-Action接受参数方式、method属性使用及通配符的配置
- 使用通配符配置 Action
- 使用通配符配置action
- 使用通配符配置action
- 道听途说Struts2之6:Action通配符 约定优于配置
- Struts2 action通配符配置method={n}不起作用
- struts2+jquery ajax中,action的配置
- Struts2通配符配置
- Java开发环境搭建
- 大家线上都是几台zk在跑?
- 作为
- PreparedStatement详解
- MapReduce排序之 二次排序
- struts2通配符配置action及ajax响应配置
- C++高频面试题
- JAVA中Nan的解决方法
- Javascript语法结构
- 作为
- 数据库范式
- 均相体系概念
- 【第5篇】使用json-lib把json字符串数据转换成Collection
- 大发光火电话的回复光滑风格化