struts中用BaseAction继承DispatchAction,方面spring中service的调用
来源:互联网 发布:儿童画画视频教程软件 编辑:程序博客网 时间:2024/04/29 15:28
public class BaseAction extends DispatchAction {
//----------------------------------------------------------------------
private static Log log = LogFactory.getLog(BaseAction.class);
private WebApplicationContext wac;
private DepartmentService departmentService;
private RoleService roleService;
private MembersService membersService;
private PermissionService permissionService;
public void setServlet(ActionServlet actionServlet) {
super.setServlet(actionServlet);
ServletContext servletContext = actionServlet.getServletContext();
this.wac = WebApplicationContextUtils.getWebApplicationContext(servletContext);
this.departmentService = (DepartmentService)wac.getBean("departmentProxy");
this.roleService = (RoleService)wac.getBean("roleProxy");
this.membersService = (MembersService)wac.getBean("membersProxy");
this.permissionService = (PermissionService)wac.getBean("permissionProxy");
}
/**
* @return 返回 departmentService。
*/
public DepartmentService getDepartmentService() {
return departmentService;
}
/**
* @return 返回 membersSerivce。
*/
public MembersService getMembersService() {
return membersService;
}
/**
* @return 返回 permissionSerivce。
*/
public PermissionService getPermissionService() {
return permissionService;
}
/**
* @return 返回 roleService。
*/
public RoleService getRoleService() {
return roleService;
}
/**
* @return 返回 wac。
*/
public WebApplicationContext getWac() {
return wac;
}
}
- struts中用BaseAction继承DispatchAction,方面spring中service的调用
- Struts中DispatchAction的用法
- Struts中DispatchAction的使用.
- struts中DispatchAction的使用
- Struts中DispatchAction的应用
- spring如何处理struts的Dispatchaction
- 在Struts中可以继承 Action DispatchAction LookupDispatchAction
- 有关struts中DispatchAction的用法小结
- struts中自定义DispatchAction
- Struts中DispatchAction解析
- 解决Spring中AOP不能切入Struts的DispatchAction方法的问题
- BaseAction extends DispatchAction
- SSH学习--struts的action中BaseAction的作用
- Struts : DispatchAction 的使用
- 从AppFuse1.7的BaseAction中看DispatchAction的具体使用
- 通过formFile实现上传文件,图片,或者其他,struts中继承action和dispatchAction的区别和用法
- struts拦截所有action的低级错误,继承BASEACTION导致报错
- 改进struts中DispatchAction用法
- 一个VB.NET写的简单图片缩放处理组件源代码,支持添加半透明效果小图标
- Base64编码算法
- Base64编码delphi算法!
- 为delphi补充函数!
- 露大腿女孩与千手观音
- struts中用BaseAction继承DispatchAction,方面spring中service的调用
- 翁联辉:国企经理到馄饨店老板[南方周末]
- 一个FLASH的开源项目
- IIS和ASPNET的安装问题
- 高清晰卫星图片:东京、法兰克福机场、华盛顿机场、金字塔、凯旋门
- Sql Server的sql注入攻击
- SQL语句参考及记录集对象详解
- 房价涨的太快了
- SQL语句