spring+struts2
来源:互联网 发布:新手怎么学好网络优化 编辑:程序博客网 时间:2024/06/18 12:50
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!-- 扫描 -->
<context:component-scan base-package="com.tony"></context:component-scan>
<bean name="loginService" class="com.tony.service.LoginService"></bean>
<bean name="loginAction" class="com.tony.action.LoginAction">
<property name="loginService">
<ref bean="loginService"/>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="default" extends="struts-default">
<action name="login_*" class="com.tony.action.LoginAction" method="{1}">
<result name="login">/index.jsp</result>
<result name="error">/error.jsp</result>
<!-- <result name="ab" type="redirect">login_c.action</result> -->
</action>
<action name="abc_*" class="com.tony.action.AbcAction" method="{1}">
<result name="abc">/error.jsp</result>
</action>
<action name="login_*" class="com.tony.Action.LoginAction" method="{1}">
<result name="success">/index.jsp</result>
<result name="input">/MyJsp.jsp</result>
<result name="a" type="redirect">login_a.action</result>
</action>
</package>
</struts>
- spring struts2
- struts2+spring
- spring+struts2
- Spring+Struts2
- Spring+Struts2
- spring/struts2
- spring+struts2
- Spring -- spring整合struts2
- struts2+spring+spring jdbc
- Spring:Spring整合Struts2
- 【Spring】Spring整合Struts2
- Spring-----18、Spring整合Struts2
- Spring-----Spring整合Struts2实例
- 【Spring】Spring+Struts2+Hibernate3知识点
- Struts2.0+spring
- struts2与spring结合
- struts2+hibernate+spring+ftl....
- struts2+hibernate+spring(1)
- Yuhuan Paris Wedding Photography
- 使用WampServer搭建本地PHP环境,绑定域名,配置伪静态
- linux下的flashback脚本
- 8数码问题-深搜-广搜
- 策略模式在简单的商场收费软件中的应用
- spring+struts2
- buntu 12.04 Rhythmbox mp3音乐乱码的解决办法
- Intellij Idea注册机
- Android对话框防止点击确定按钮时关闭
- Android开发学习-4
- 夜深人静时
- 黑马程序员_Java基础_IO流_字节流,字节流操作文件,缓冲区字节流,流的使用规律,异常记录原理
- 黑马程序员_关于字符串缓冲池
- 重建控制文件的语法