spring整合struts2
来源:互联网 发布:天翼云盘直链源码 编辑:程序博客网 时间:2024/06/07 15:14
1.主要让spring生成Action供struts使用
2.导入jar包struts2-spring-plugin-2.5.10.jar
struts2配置
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" "http://struts.apache.org/dtds/struts-2.5.dtd"><struts> <package name="ssh" extends="struts-default" namespace="/"> <!-- 使用通配符 需要添加属性method = --> <action name="TestAction_*" class="testAction" method="{1}"> <result name="success">/login.jsp</result> </action> </package></struts>
spring配置
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean name="testAction" class="com.chet.action.TestAction"></bean></beans>
0 0
- Spring -- spring整合struts2
- Spring:Spring整合Struts2
- 【Spring】Spring整合Struts2
- EJB3,Spring,Struts2整合
- struts2+hibernate+spring整合
- Struts2 与 Spring 整合
- struts2 spring hibernate 整合
- Spring struts2 hibernate 整合
- struts2整合spring步骤
- spring/struts2整合
- spring 整合struts2
- spring + struts2 整合
- Struts2与Spring整合
- Struts2和Spring整合
- struts2+spring+hibernate整合
- Struts2+Spring整合
- struts2 spring整合注意事项。
- Struts2+Spring整合
- bzoj4503 两个串
- 易助ERP启动报错
- jqGrid获取选中行的部分数据
- strust2+spring3+hibernate整合之路(struts2的简单配置)
- window.onload以及事件监听器
- spring整合struts2
- bootstrap实战-起步案例的再编写
- 数据结构基本知识框图
- 安装windows+linux双系统是遇到的问题总结
- [数据挖掘]
- 漫步数学分析二十八——狄利克雷与阿贝尔测试
- Egret游戏引擎视频教程
- 利用单链表实现一元多项式的表示及相加
- GDB 调试C++