struts-config.xml~21~
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
  3. <struts-config>
  4.   <data-sources>
  5.     <data-source url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=employees" maxCount="4" user="sa" autoCommit="false" minCount="2" driverClass="com.microsoft.jdbc.sqlserver.SQLServerDriver" password="sa" description="Example Data Source Description" />
  6.   </data-sources>
  7.   <form-beans>
  8.     <form-bean name="logonActionForm" type="strutsds.logonActionForm" />
  9.     <form-bean name="employeeActionForm" type="strutsds.EmployeeActionForm" />
  10.   </form-beans>
  11.   <global-forwards>
  12.     <forward name="login" path="/login.jsp" />
  13.   </global-forwards>
  14.   <action-mappings>
  15.     <action name="logonActionForm" type="strutsds.logonAction" validate="true" input="/login.jsp" scope="request" path="/logonAction">
  16.       <forward name="success" path="/EmployeeList.do" />
  17.     </action>
  18.     <action type="strutsds.EmployeeListAction" scope="request" path="/EmployeeList">
  19.       <forward name="success" path="/employeelist.jsp" />
  20.     </action>
  21.     <action name="employeeActionForm" type="strutsds.AddEmployeeAction" validate="true" input="/addemployee.jsp" scope="request" path="/addEmployeeAction">
  22.       <forward name="success" path="/EmployeeList.do" />
  23.       <forward name="error" path="/addemployee.jsp" />
  24.     </action>
  25.     <action  name="employeeActionForm" type="strutsds.GetEmployeeAction" input="/editemployee.jsp" path="/getEmployeeAction" />
  26.     <action name="employeeActionForm" type="strutsds.EditEmployeeAction" input="/editemployee.jsp" path="/editEmployeeAction" >
  27.     <forward name="success" path="/editemployee.jsp"/>
  28.     <forward name="error" path="/EmployeeList.do"/>
  29.     </action>
  30.   </action-mappings>
  31. </struts-config>