⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struts-config.xml~1~

📁 利用Structs实现企业资源计划(ERP)中涉及到的人事管理系统。
💻 XML~1~
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<!-- Generated with Karapan Sapi Struts Generator -->
<!-- mailto:gxcao@mail.tsinghua.edu.cn         -->

<struts-config>
    <!-- ============ DataSource Pool ============ -->
    <data-sources>
      <data-source>
        <set-property property="autoCommit" value="false"/>
        <set-property property="description" value="Database for Personal of System"/>
        <set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
        <set-property property="maxCount" value="5"/>
        <set-property property="minCount" value="1"/>
        <set-property property="url" value="jdbc:oracle:thin:@localhost:1521:landsoft"/>
        <set-property property="user" value="personal"/>
        <set-property property="password" value="personal"/>
      </data-source>
    </data-sources>

  <!-- ============ Form beans ============ -->
  <form-beans>
    <form-bean type="com.landsoft.personal.controller.NationForm" name="nationForm"/>
    <form-bean type="com.landsoft.personal.controller.BusinessForm" name="businessForm"/>
    <form-bean type="com.landsoft.personal.controller.TypeofworkForm" name="typeofworkForm"/>
    <form-bean type="com.landsoft.personal.controller.DeptForm" name="deptForm"/>
    <form-bean type="com.landsoft.personal.controller.PersonalForm" name="personalForm"/>
  </form-beans>

  <!-- ============ Global forwards ============ -->
  <global-forwards type="org.apache.struts.action.ActionForward">
    <forward name="failure" path="error.page"/>
    <forward name="success" path="/success.jsp"/>
    <forward name="error" path="error.page"/>
    <forward name="cancel" path="/servlet/main.do"/>
  </global-forwards>

  <!-- ============ Action Mapping definitions ============ -->
  <action-mappings type="org.apache.struts.action.ActionMapping">
  <!-- Static pages -->
  <action path="/main" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="doc.mainLayout"/>
  </action>
  <action path="/logout" type="com.landsoft.personal.controller.Logout">
    <forward name="success" path="/index.jsp"/>
  </action>
  <action path="/query/Nation/SearchByPK" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="query.Nation.SearchByPK"/>
  </action>
  <action path="/query/Business/SearchByPK" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="query.Business.SearchByPK"/>
  </action>
  <action path="/query/Typeofwork/SearchByPK" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="query.Typeofwork.SearchByPK"/>
  </action>
  <action path="/query/Dept/SearchByPK" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="query.Dept.SearchByPK"/>
  </action>
  <action path="/query/Personal/SearchByPK" parameter="forward" type="com.landsoft.personal.controller.DispatchForward">
    <forward name="forward" path="query.Personal.SearchByPK"/>
  </action>

    <!-- <<<<<<<<<<<<<< Nation >>>>>>>>>>>>>>> -->
    <action path="/Nation/add" parameter="ADD" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="manager.Nation.entry"/>
    </action>
    <action path="/Nation/edit" parameter="EDIT" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="manager.Nation.entry"/>
    </action>
    <action path="/Nation/list" parameter="LIST" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="manager.Nation.summary"/>
    </action>
    <action path="/Nation/view" parameter="VIEW" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="manager.Nation.view"/>
    </action>
    <action path="/Nation/remove" parameter="REMOVE" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="manager.Nation.remove"/>
    </action>
    <action path="/Nation/trash" parameter="TRASH" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="false">
      <forward name="success" path="/Nation/list.do"/>
    </action>
    <action path="/Nation/save" parameter="SAVE" type="com.landsoft.personal.controller.NationAction"
      scope="request" name="nationForm" validate="true" input="manager.Nation.entry">
      <forward name="success" path="/Nation/list.do"/>
      <forward name="cancel" redirect="true" path="/Nation/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Business >>>>>>>>>>>>>>> -->
    <action path="/Business/add" parameter="ADD" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="manager.Business.entry"/>
    </action>
    <action path="/Business/edit" parameter="EDIT" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="manager.Business.entry"/>
    </action>
    <action path="/Business/list" parameter="LIST" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="manager.Business.summary"/>
    </action>
    <action path="/Business/view" parameter="VIEW" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="manager.Business.view"/>
    </action>
    <action path="/Business/remove" parameter="REMOVE" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="manager.Business.remove"/>
    </action>
    <action path="/Business/trash" parameter="TRASH" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="false">
      <forward name="success" path="/Business/list.do"/>
    </action>
    <action path="/Business/save" parameter="SAVE" type="com.landsoft.personal.controller.BusinessAction"
      scope="request" name="businessForm" validate="true" input="manager.Business.entry">
      <forward name="success" path="/Business/list.do"/>
      <forward name="cancel" redirect="true" path="/Business/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Typeofwork >>>>>>>>>>>>>>> -->
    <action path="/Typeofwork/add" parameter="ADD" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="manager.Typeofwork.entry"/>
    </action>
    <action path="/Typeofwork/edit" parameter="EDIT" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="manager.Typeofwork.entry"/>
    </action>
    <action path="/Typeofwork/list" parameter="LIST" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="manager.Typeofwork.summary"/>
    </action>
    <action path="/Typeofwork/view" parameter="VIEW" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="manager.Typeofwork.view"/>
    </action>
    <action path="/Typeofwork/remove" parameter="REMOVE" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="manager.Typeofwork.remove"/>
    </action>
    <action path="/Typeofwork/trash" parameter="TRASH" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="false">
      <forward name="success" path="/Typeofwork/list.do"/>
    </action>
    <action path="/Typeofwork/save" parameter="SAVE" type="com.landsoft.personal.controller.TypeofworkAction"
      scope="request" name="typeofworkForm" validate="true" input="manager.Typeofwork.entry">
      <forward name="success" path="/Typeofwork/list.do"/>
      <forward name="cancel" redirect="true" path="/Typeofwork/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Dept >>>>>>>>>>>>>>> -->
    <action path="/Dept/add" parameter="ADD" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="manager.Dept.entry"/>
    </action>
    <action path="/Dept/edit" parameter="EDIT" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="manager.Dept.entry"/>
    </action>
    <action path="/Dept/list" parameter="LIST" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="manager.Dept.summary"/>
    </action>
    <action path="/Dept/view" parameter="VIEW" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="manager.Dept.view"/>
    </action>
    <action path="/Dept/remove" parameter="REMOVE" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="manager.Dept.remove"/>
    </action>
    <action path="/Dept/trash" parameter="TRASH" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="false">
      <forward name="success" path="/Dept/list.do"/>
    </action>
    <action path="/Dept/save" parameter="SAVE" type="com.landsoft.personal.controller.DeptAction"
      scope="request" name="deptForm" validate="true" input="manager.Dept.entry">
      <forward name="success" path="/Dept/list.do"/>
      <forward name="cancel" redirect="true" path="/Dept/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Personal >>>>>>>>>>>>>>> -->
    <action path="/Personal/add" parameter="ADD" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="manager.Personal.entry"/>
    </action>
    <action path="/Personal/edit" parameter="EDIT" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="manager.Personal.entry"/>
    </action>
    <action path="/Personal/list" parameter="LIST" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="manager.Personal.summary"/>
    </action>
    <action path="/Personal/view" parameter="VIEW" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="manager.Personal.view"/>
    </action>
    <action path="/Personal/remove" parameter="REMOVE" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="manager.Personal.remove"/>
    </action>
    <action path="/Personal/trash" parameter="TRASH" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="false">
      <forward name="success" path="/Personal/list.do"/>
    </action>
    <action path="/Personal/save" parameter="SAVE" type="com.landsoft.personal.controller.PersonalAction"
      scope="request" name="personalForm" validate="true" input="manager.Personal.entry">
      <forward name="success" path="/Personal/list.do"/>
      <forward name="cancel" redirect="true" path="/Personal/list.do"/>
    </action>
  </action-mappings>

  <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

  <!-- ========== Message Resources Definitions =========================== -->
  <message-resources parameter="resources.application"/>

  <!-- ========== Plug Ins Configuration ================================== -->
  <!-- Add multiple validator resource files by setting the pathname property -->
  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
  </plug-in>
  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-def.xml"/>
    <set-property property="definitions-debug" value="0"/>
    <set-property property="definitions-parser-details" value="0"/>
    <set-property property="definitions-parser-validate" value="true"/>
  </plug-in>


</struts-config>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -