Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

struts学习笔记

来源: 未知 分享至:
Struts与Spring整合的几种方法http://downpour.iteye.com/blog/24239
1、
编写Spring的配置文件applicationContext.xml,简单起见,仅仅定义一个Service对象
struts配置文件中<controller processorClass="org.springframework.web.struts.AutowiringRequestProcessor" />
action 为Service对象提高get/set方法
ActionSupport 类提供了一个 getWebApplicationContext() 方法

DelegatingRequestProcessor 类来覆盖 Struts 的 RequestProcessor

<action path="/searchSubmit"
type="org.springframework.web.struts.DelegatingActionProxy" |(1)



Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史