struts2把action交给spring托管
来源:互联网 发布:中国网络资讯台无锡市 编辑:程序博客网 时间:2024/05/17 02:10
首先先看一下demo的大概结构
action类:
public class Myaction extends ActionSupport{private String name;private int age;private int test;........}其中name,age由表单传过来的值确定,test由spring注入
spring托管action的主要流程
1.在spring配置文件中注入struts的action类
<bean id="Myaction" class="com.action.Myaction" p:test="222"></bean>2.在struts2配置文件中配置Action时,指定<action>的class属性为Spring配置文件中相应bean的id或者name值
<action name="Myaction*" class="Myaction" method="{1}"><result name="success">/pages/MyJsp.jsp</result></action>
阅读全文
1 0
- struts2把action交给spring托管
- Struts2 是如何把Action交给Spring托管的?
- 【j2ee spring】20、S2SH框架中,把struts2的action交给Spring管理有什么好处?
- 将struts2的action交给spring管理及注意事项
- Struts2 和spring整合的 Action层托管问题
- 把hibernate事务交给spring管理
- spring之把配置文件的加载交给服务
- strus2的action类交给spring管理action的class与spring的id相对应
- 把CIO交给系统分析员
- Spring 管理Struts2 Action
- struts2,spring管理action
- struts 交给spring管理
- 把钱交给国家安全吗?
- 我把自己交给你
- 把命运交给陌生人 徐小平
- struts2 委托spring代理action
- Spring和Struts2的action
- spring托管struts,出现javaruntimeexception,导致相应action无效
- Scala定义函数的5种方式
- 有关数组的基础递归
- 改变this指向(call、apply、bind)
- cannot simultaneously fetch multiple bags[]不能抓取一对多的属性
- iOS pop到指定页面
- struts2把action交给spring托管
- 一个邮件钓鱼木马的分析 (一)
- 上拉加载
- JVM调优魔法棒-Java VisualVM
- I NEED A OFFER!
- 使程序在Linux下后台运行 (关掉终端继续让程序运行的方法)
- 按键精灵WQM,怎么重复执行某一脚本?
- 51nod 1276 岛屿的数量 离线算法乱搞
- werkzeug之Local解析