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

📄 struts-config.xml~3~

📁 手机短信采集系统
💻 XML~3~
字号:
<?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 Gsm of Application"/>
        <set-property property="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver"/>
        <set-property property="maxCount" value="5"/>
        <set-property property="minCount" value="1"/>
        <set-property property="url" value="jdbc:odbc:gsm"/>
        <set-property property="user" value="sa"/>
        <set-property property="password" value="password"/>
      </data-source>
    </data-sources>

  <!-- ============ Form beans ============ -->
  <form-beans>
    <form-bean type="com.landsoft.gsm.controller.ClientForm" name="clientForm"/>
    <form-bean type="com.landsoft.gsm.controller.InformationForm" name="informationForm"/>
    <form-bean type="com.landsoft.gsm.controller.PromotionForm" name="promotionForm"/>
  </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.gsm.controller.DispatchForward">
    <forward name="forward" path="doc.mainLayout"/>
  </action>
  <action path="/logout" type="com.landsoft.gsm.controller.Logout">
    <forward name="success" path="/index.jsp"/>
  </action>
  <action path="/query/Client/SearchByPK" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Client.SearchByPK"/>
  </action>
  <action path="/query/Client/newQuery" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Client.newQuery"/>
  </action>
  <action path="/query/Information/SearchByPK" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Information.SearchByPK"/>
  </action>
  <action path="/query/Information/newQuery" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Information.newQuery"/>
  </action>
  <action path="/query/Promotion/SearchByPK" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Promotion.SearchByPK"/>
  </action>
  <action path="/query/Promotion/newQuery" parameter="forward" type="com.landsoft.gsm.controller.DispatchForward">
    <forward name="forward" path="query.Promotion.newQuery"/>
  </action>

    <!-- <<<<<<<<<<<<<< Client >>>>>>>>>>>>>>> -->
    <action path="/Client/add" parameter="ADD" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.entry"/>
    </action>
    <action path="/Client/edit" parameter="EDIT" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.entry"/>
    </action>
    <action path="/Client/list" parameter="LIST" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.summary"/>
    </action>
    <action path="/Client/view" parameter="VIEW" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.view"/>
    </action>
    <action path="/Client/remove" parameter="REMOVE" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.remove"/>
    </action>
    <action path="/Client/trash" parameter="TRASH" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="/Client/list.do"/>
    </action>
    <action path="/Client/save" parameter="SAVE" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="true" input="manager.Client.entry">
      <forward name="success" path="/Client/list.do"/>
      <forward name="cancel" redirect="true" path="/do/Client/list"/>
    </action>
    <action path="/Client/newQuery" parameter="NEWQUERY" type="com.landsoft.gsm.controller.ClientAction"
      scope="request" name="clientForm" validate="false">
      <forward name="success" path="manager.Client.summary"/>
      <forward name="cancel" redirect="true" path="/Client/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Information >>>>>>>>>>>>>>> -->
    <action path="/Information/add" parameter="ADD" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.entry"/>
    </action>
    <action path="/Information/edit" parameter="EDIT" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.entry"/>
    </action>
    <action path="/Information/list" parameter="LIST" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.summary"/>
    </action>
    <action path="/Information/view" parameter="VIEW" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.view"/>
    </action>
    <action path="/Information/remove" parameter="REMOVE" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.remove"/>
    </action>
    <action path="/Information/trash" parameter="TRASH" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="/Information/list.do"/>
    </action>
    <action path="/Information/save" parameter="SAVE" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="true" input="manager.Information.entry">
      <forward name="success" path="/Information/list.do"/>
      <forward name="cancel" redirect="true" path="/do/Information/list"/>
    </action>
    <action path="/Information/newQuery" parameter="NEWQUERY" type="com.landsoft.gsm.controller.InformationAction"
      scope="request" name="informationForm" validate="false">
      <forward name="success" path="manager.Information.summary"/>
      <forward name="cancel" redirect="true" path="/Information/list.do"/>
    </action>
    <!-- <<<<<<<<<<<<<< Promotion >>>>>>>>>>>>>>> -->
    <action path="/Promotion/add" parameter="ADD" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.entry"/>
    </action>
    <action path="/Promotion/edit" parameter="EDIT" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.entry"/>
    </action>
    <action path="/Promotion/list" parameter="LIST" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.summary"/>
    </action>
    <action path="/Promotion/view" parameter="VIEW" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.view"/>
    </action>
    <action path="/Promotion/remove" parameter="REMOVE" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.remove"/>
    </action>
    <action path="/Promotion/trash" parameter="TRASH" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="/Promotion/list.do"/>
    </action>
    <action path="/Promotion/save" parameter="SAVE" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="true" input="manager.Promotion.entry">
      <forward name="success" path="/Promotion/list.do"/>
      <forward name="cancel" redirect="true" path="/do/Promotion/list"/>
    </action>
    <action path="/Promotion/newQuery" parameter="NEWQUERY" type="com.landsoft.gsm.controller.PromotionAction"
      scope="request" name="promotionForm" validate="false">
      <forward name="success" path="manager.Promotion.summary"/>
      <forward name="cancel" redirect="true" path="/Promotion/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 + -