service-application-struts相关的配置
2014-08-30 16:11
239 查看
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="loginAction" class="com.xuefeng.ssh.action.LoginAction"
scope="prototype">
<property name="loginService" ref="loginService"></property>
</bean>
<bean id="FindUserAction" class="com.xuefeng.ssh.action.FindAction"
scope="prototype">
<property name="findUserservice" ref="findUserservice"></property>
</bean>
<bean id="loginService" class="com.xuefeng.ssh.service.impl.LoginServiceImpl">
<property name="userDao" ref="userDao" />
</bean>
<bean id="findUserservice" class="com.xuefeng.ssh.service.impl.FindUserServiceImpl">
<property name="userDao" ref="userDao" />
</bean>
findUserservice 这个是set或者get里边的参数。不是private里定义的变量!
application
<action name="finduser" class="FindUserAction">
<result name="input" type="redirect">/login.jsp</result>
<result name="success">/find.jsp</result>
</action>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean id="loginAction" class="com.xuefeng.ssh.action.LoginAction"
scope="prototype">
<property name="loginService" ref="loginService"></property>
</bean>
<bean id="FindUserAction" class="com.xuefeng.ssh.action.FindAction"
scope="prototype">
<property name="findUserservice" ref="findUserservice"></property>
</bean>
<bean id="loginService" class="com.xuefeng.ssh.service.impl.LoginServiceImpl">
<property name="userDao" ref="userDao" />
</bean>
<bean id="findUserservice" class="com.xuefeng.ssh.service.impl.FindUserServiceImpl">
<property name="userDao" ref="userDao" />
</bean>
findUserservice 这个是set或者get里边的参数。不是private里定义的变量!
application
<action name="finduser" class="FindUserAction">
<result name="input" type="redirect">/login.jsp</result>
<result name="success">/find.jsp</result>
</action>
相关文章推荐
- struts笔记之action配置相关
- 关于Struts1.2配置文件的Action访问路径相关问题
- struts2 入门2:struts配置相关与拦截器
- SpringMVC之application-context.xml,了解数据库相关配置
- SpringMVC之application-context.xml,了解数据库相关配置
- Webshpere Application Server 下字符转换相关配置
- Java学习笔记 Struts常用相关配置
- SSH整合配置applicationContext.xml/hibernate.cfg.xml/struts.xml
- 在struts2.0框架中,多struts.xml与多applicationContext.xml配置的方法
- Spring Boot application.propertis配置文件的相关通用属性
- 在struts2.0框架中,多struts.xml与多applicationContext.xml配置的方法
- 学习使用struts;在web.xml配置struts相关
- Struts2+Spring+Hibernate关于applicationContext.xml的相关配置
- ubuntu service 配置相关
- User Profile Service Application 配置同步连接时,报 MOSS MA not found
- STRUTS2.x 初始化相关的配置信息文件及struts.properties详解
- struts分发请求的过程与相关配置
- 防止页面表单重复提交,JSP页面加入 <s:token/> 以及Struts的相关配置详解
- Struts2.xml文件中的常量、全局错误的配置及相关动态方法的调用
- 通过systemd配置Docker--systemd Service相关目录