DelegatingActionProxy
来源:互联网 发布:招商加盟网络推广方案 编辑:程序博客网 时间:2024/05/02 02:43
public class DelegatingActionProxy extends Action {
public ActionForward execute(
ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception {
Action delegateAction = getDelegateAction(mapping);//得到action实例
return delegateAction.execute(mapping, form, request, response);
return (Action) wac.getBean(beanName, Action.class);
}
protected WebApplicationContext getWebApplicationContext (
ActionServlet actionServlet, ModuleConfig moduleConfig) throws IllegalStateException {
return DelegatingActionUtils.findRequiredWebApplicationContext(actionServlet, moduleConfig);
}
protected String determineActionBeanName(ActionMapping mapping) {
return DelegatingActionUtils.determineActionBeanName(mapping);
}
}
//在服务器开启服务时会进行一些初始化的工作。其中重要的一份工作就是初始化ModuleConfig。ModuleConfig是和struts配置文件相对应的,说的具体点是和<struts-config>对应的。一个配置文件对应一个moduleconfig。
//用来标志和区分ModuleConfig类,同时在使用上面的config类初始化相应的资源以后,也是通过这个prefix来区分所属的不同的web模块。
}
0 0
- DelegatingActionProxy
- 使用 DelegatingActionProxy
- 使用 DelegatingActionProxy
- 使用 DelegatingActionProxy
- 关于spring的DelegatingActionProxy
- structs中使用 DelegatingActionProxy
- org.springframework.web.struts.DelegatingActionProxy
- spring2.5中没有org.springframework.web.struts.DelegatingActionProxy
- spring2.5 怎么没有spring2.0中的org.springframework.web.struts.DelegatingActionProxy ?
- java开源框架集成常见错误之spring2.5中没有org.springframework.web.struts.DelegatingActionProxy ,使得Action不能注入到spring中
- 解决VS2010链接错误:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
- Hello Mr.J——请把我埋在这Spring里
- 装饰器设计模式
- C语言关键字
- HDU ACM 1050 Moving Tables
- DelegatingActionProxy
- mysql性能浅述——罗列所有表
- 平衡二叉树(AVL树)的查找,插入和删除
- java基础的学习
- linux系统vi命令编辑后Ctrl+s“死机”
- 【Loadrunner】检查点设置
- UpdateData(TRUE)与 UpdateData(FALSE);
- “【】”的输入与输出
- tomcat常见操作