struts-config.xml~18~
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:
Java编程
开发平台:
Java
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
- <struts-config>
- <data-sources>
- <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" />
- </data-sources>
- <form-beans>
- <form-bean name="logonActionForm" type="strutsds.logonActionForm" />
- <form-bean name="employeeActionForm" type="strutsds.EmployeeActionForm" />
- </form-beans>
- <global-forwards>
- <forward name="login" path="/login.jsp" />
- </global-forwards>
- <action-mappings>
- <action name="logonActionForm" type="strutsds.logonAction" validate="true" input="/login.jsp" scope="request" path="/logonAction">
- <forward name="success" path="/EmployeeList.do" />
- </action>
- <action type="strutsds.EmployeeListAction" scope="request" path="/EmployeeList">
- <forward name="success" path="/employeelist.jsp" />
- </action>
- <action name="employeeActionForm" type="strutsds.AddEmployeeAction" validate="true" input="/addemployee.jsp" scope="request" path="/addEmployeeAction">
- <forward name="success" path="/EmployeeList.do" />
- <forward name="error" path="/addemployee.jsp" />
- </action>
- <action name="employeeActionForm" type="strutsds.GetEmployeeAction" input="employeelist.jsp" path="/getEmployeeAction" />
- <action name="employeeActionForm" type="strutsds.EditEmployeeAction" input="/editemployee.jsp" path="/editEmployeeAction" >
- <forward name="success" path="/EmployeeList.do"/>
- <forward name="error" path="/editemployee.jsp"/>
- </action>
- </action-mappings>
- </struts-config>