您的位置:首页 > 移动开发

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: