`
echo46219519
  • 浏览: 11351 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

our struts config file

 
阅读更多
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
<form-beans>
</form-beans>

<global-exceptions>
<!--
<exception key="number" path="/jsp/system.jsp" type="java.lang.NumberFormatException" />
<exception key="pointer" path="/jsp/system.jsp" type="java.lang.NullPointerException" />
<exception key="memory" path="/jsp/system.jsp" type="java.lang.OutOfMemoryError" />
<exception key="runtime" path="/jsp/system.jsp" type="java.lang.RuntimeException" />
<exception key="servlet" path="/jsp/system.jsp" type="javax.servlet.ServletException" />
<exception key="jsp" path="/jsp/system.jsp" type="javax.servlet.jsp.JspException" />
   -->
   <!-- 捕获未处理的例外,也包括常见的Http错误和Servlet错误 tsing -->
   <exception key="uncatchable" type="java.lang.Throwable" handler="org.apache.struts.action.ExceptionHandler" path="/error.jsp" scope="request" />
</global-exceptions>
<global-forwards>
<forward name="failure" path="/jsp/errorMsg.jsp" />
</global-forwards>

<action-mappings>
<action path="/index" forward="/main.jsp"/>
</action-mappings>
<controller nocache="false" inputForward="true" maxFileSize="50M"/>
<message-resources parameter="ApplicationResources_zh_CN"></message-resources>
<plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext*.xml" />
</plug-in>
      <!-- ========== Validator plugin =================== 
   
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
        <set-property property="pathnames"  value="/WEB-INF/validator-rules.xml,/WEB-INF/validator-rules-custom.xml,/WEB-INF/validation.xml"/>
    </plug-in>
    -->
</struts-config>


=============================

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
  <form-beans>
<form-bean name="accountForm" type="com.sino.mis.account.web.form.AccountForm" />
<form-bean name="accountContactsForm" type="com.sino.mis.account.web.form.AccountContactsForm" />
<form-bean name="industyForm" type="com.sino.mis.account.web.form.IndustyForm" />
<form-bean name="industryCsForm" type="com.sino.mis.account.web.form.IndustryCsForm" />
  </form-beans>


  <global-exceptions/>
  <global-forwards>
  </global-forwards>

  <action-mappings >
  <action path="/accountInfo" name="accountForm"
parameter="actionType" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="list" path="/jsp/account/accountList.jsp"/>
<forward name="toadd" path="/jsp/account/accountNew.jsp"/>
<forward name="add" path="/accountInfo.do?actionType=search"/>
<forward name="tomodify" path="/jsp/account/accountEdit.jsp"/>
<forward name="toShow" path="/jsp/account/accountShow.jsp"/>
<forward name="modify" path="/accountInfo.do?actionType=search" />
<forward name="delete" path="/accountInfo.do?actionType=search" />
<forward name="search" path="/accountInfo.do?actionType=list"/>
<forward name="error" path="/jsp/account/message.jsp"/>
<forward name="select" path="/jsp/account/accountSelect.jsp"/>
<forward name="detail" path="/jsp/account/leslie_shenzhou/accountRead.jsp"/>

<forward name="reAdd" path="/jsp/account/reAddmsg.jsp"/>
</action>
<action path="/accountContacts" name="accountContactsForm"
parameter="actionType" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="list" path="/jsp/account/accountContactsList.jsp"/>
<forward name="toadd" path="/jsp/account/accountContactsNew.jsp"/>
<forward name="add" path="/accountInfo.do?actionType=search"/>
<forward name="tomodify" path="/jsp/account/accountContactsEdit.jsp"/>
<forward name="modify" path="/accountContacts.do?actionType=search"/>
<forward name="delete" path="/accountContacts.do?actionType=search"/>
<forward name="search" path="/accountContacts.do?actionType=list"/>
<forward name="actsdetail" path="/jsp/account/leslie_shenzhou/accountRead.jsp"/>

</action>

<action path="/industyInfo" name="industyForm"
parameter="actionType" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="list" path="/jsp/account/industyList.jsp"/>
<forward name="toadd" path="/jsp/account/industyAdd.jsp"/>
<forward name="toedit" path="/jsp/account/industyEdit.jsp"/>
<forward name="search" path="/industyInfo.do?actionType=search"/>
</action>

<action path="/industryCsInfo" name="industryCsForm"
parameter="actionType" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="list" path="/jsp/account/industryCsList.jsp"/>
<forward name="toadd" path="/jsp/account/industryCsAdd.jsp"/>
<forward name="toedit" path="/jsp/account/industryCsEdit.jsp"/>
<forward name="search" path="/industryCsInfo.do?actionType=search"/>
</action>

  </action-mappings>

</struts-config>

分享到:
评论

相关推荐

    struts2.3.12GA(HTML版)

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    struts-2.3.34-apps.zip

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    struts-2.3.15-all.zip(2).zip

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    struts-2.3.15.3-all.zip

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    AndroidFileTransfer.dmg

    By downloading, you agree to our Terms of Service and Privacy Policy. How to use it Download the app. Open AndroidFileTransfer.dmg. Drag Android File Transfer to Applications. Use the USB cable that ...

    struts-2.3.15-all.zip(1).zip

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    OUR_MIFARE_OUR_MIFARE_读写数据_读卡器_

    标题中的"OUR_MIFARE_OUR_MIFARE_读写数据_读卡器_"表明这是一个关于MIFARE卡读写技术的项目,其中可能包含了读卡器设备与MIFARE IC卡之间的通信协议和数据处理功能。MIFARE卡是一种广泛应用的非接触式智能卡,常...

    精通Struts:基于MVC (part 5)共分5个part

    Struts框架使用struts-config.xml文件进行配置,这个文件定义了Action的映射、Form Bean的声明等重要的配置信息。例如,可以配置Action的路径、方法名等。 ```xml ``` #### 4. **Struts Taglib** 为了简化...

    Struts应用.doc

    hello.jsp.page.heading=Welcome to our application! hello.jsp.page.hello=Hello hello.jsp.prompt.person=Please enter your name: ``` 以上就是基于Struts的“HelloWorld”应用的主要实现细节。通过这样的架构...

    struts2DEMO

    7. **项目结构**:"OurProject"这个文件夹很可能是整个项目的基础结构,包括了src/main/java(源代码目录)、src/main/resources(资源文件)、src/main/webapp(Web应用目录)等,其中Web应用目录下通常会有WEB-INF...

    Struts 2 Form Tags

    In our previous tutorials that explained how to use Struts 2 forms (Processing Forms, Form Validation, and Message Resource Files) we covered how to use the Struts 2 head, form, textfield controls ...

    ourphp 1.8 后台任意文件读取漏洞1

    $contents = file_get_contents($file); if (function_exists('mb_detect_encoding')) { $encode = mb_detect_encoding($contents); } else { $encode = 'UTF-8'; } if ($encode !== "UTF-8") { ``` 这段...

    struts-2.3.34-src.zip

    Use the links below to download a release of Apache Struts from one of our mirrors. You can verify the integrity of the downloaded files using signatures downloaded from our main distribution ...

    Struts2 国际化 多语言切换

    welcomeMessage=Welcome to our application! loginFailed=Login failed, please try again. ``` **二、Struts2的国际化配置** 在Struts2中,我们需要在`struts.xml`配置文件中声明国际化支持。 1. 添加拦截器...

    外文翻译 stus MVC

    The file struts-config.xml instructs ActionServlet on how to use the extended classes. There are several advantages to this approach: • The entire logical flow of the application is in a ...

    ourphp短信插件_ourphp短信接口开发_ourphp短信发送设置

    我们的讨论将围绕“ourphp短信插件”,这是一个用于集成短信服务到OURPHP平台的工具,主要涉及短信接口的开发和发送设置。短信插件在现代Web应用中扮演着至关重要的角色,它允许开发者通过API与短信服务商进行交互,...

    Model Our World中文版

    《Model Our World中文版》是GIS(地理信息系统)领域中一份重要的学习资源,由武汉大学遥感信息工程学院GIS教研室主任李建松老师极力推荐。这个资源主要围绕ESRI公司的GIS技术,特别是其在3D建模和地理空间分析方面...

    Modeling Our World中文版

    本书详细讨论了不同类型的geodatabase,包括文件地理数据库(File Geodatabase)、个人地理数据库(Personal Geodatabase)以及ArcSDE地理数据库。 - **文件地理数据库**:存储在单一文件系统中的geodatabase,便于...

    Model Our World中文版本

    "Model Our World中文版本"是一个专门针对中文用户设计的3D建模和模拟软件,它旨在帮助用户构建、理解和探索虚拟世界。这个软件的核心功能包括地形建模、城市规划、环境模拟以及工程项目的可视化,广泛应用于教育、...

    开源 ourlinux杂志 1-6期

    开源 ourlinux杂志 1-6期

Global site tag (gtag.js) - Google Analytics