struts-config.xml 配置模板

本文介绍了一个基于Struts框架的应用配置文件,详细展示了不同模块如数据源、表单bean、全局异常处理、转发设置及动作映射等内容。通过该配置文件可以了解如何管理和组织Struts应用中的各种组件。

<?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>
  <data-sources />
  <form-beans >
    <form-bean name="emplooyesForm" type="com.struts.form.EmplooyesForm" />
    <form-bean name="rolesForm" type="com.struts.form.RolesForm" />
    <form-bean name="depForm" type="com.struts.form.DepForm" />
    <form-bean name="notesTypeForm" type="com.struts.form.NotesTypeForm" />
    <form-bean name="noteForm" type="com.struts.form.NoteForm" />

  </form-beans>

  <global-exceptions />
  <global-forwards >
   <forward name="index" path="/index.jsp"></forward>
   <forward name="fail" path="/form/login.jsp"></forward>
  </global-forwards>
 
 
  <action-mappings >
  <!-- 员工管理ACTION -->
    <action
      attribute="emplooyesForm"
      input="/form/emplooyes.jsp"
      name="emplooyesForm"
      parameter="action"
      path="/emplooyes"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" >
      <forward name="addsuccess" path="/form/EmplooyesManage.jsp"></forward>
      <forward name="addfail"    path="/form/emplooyes.jsp"></forward>
      </action>
     
        <!-- 登陆管理ACTION -->
      <action
      attribute="emplooyesForm"
      input="/form/login.jsp"
      name="emplooyesForm"
      parameter="action"
      path="/doLonginAndMessages"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" />
     
        <!-- 角色管理ACTION -->
    <action
      attribute="rolesForm"
      input="/roles/roles.jsp"
      name="rolesForm"
      parameter="action"
      path="/roles"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" />
      <!-- 部门ACTION -->
    <action
      attribute="depForm"
      input="/form/addDep.jsp"
      name="depForm"
      parameter="action"
      path="/dep"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy"
      >
      <forward name="success" path="/form/EmplooyesManage.jsp"></forward>
      <forward name="fail" path="/form/addDep.jsp"></forward>
      </action>
   
     <!--公告类型ACTION -->
    <action
      attribute="notesTypeForm"
      input="/notes/notesManager.jsp"
      name="notesTypeForm"
      parameter="action"
      path="/notesType"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" />
         <!--公告ACTION -->
    <action
      attribute="noteForm"
      input="/notes/addnote.jsp"
      name="noteForm"
      parameter="action"
      path="/note"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" />
    <action
      parameter="action"
      path="/menus"
      type="org.springframework.web.struts.DelegatingActionProxy" />
  
  
    <action
      parameter="action"
      path="/list"
      type="org.springframework.web.struts.DelegatingActionProxy" />
    <action
      parameter="action"
      path="/attention"
      type="org.springframework.web.struts.DelegatingActionProxy" />
     
      <!-- 1111111111 -->
    <action
      parameter="action"
      path="/mydate"
      type="org.springframework.web.struts.DelegatingActionProxy" />
  </action-mappings>
  <message-resources parameter="com.struts.ApplicationResources" />
</struts-config>

 

这个是完整源码 python实现 Flask,Vue 【python毕业设计】基于Python的Flask+Vue物业管理系统 源码+论文+sql脚本 完整版 数据库是mysql 本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发展随后依照传统的软件开发流程,最先为系统挑选适用的言语和软件开发平台,依据需求分析开展控制模块制做和数据库查询构造设计,随后依据系统整体功能模块的设计,制作系统的功能模块图、E-R图。随后,设计框架,依据设计的框架撰写编码,完成系统的每个功能模块。最终,对基本系统开展了检测,包含软件性能测试、单元测试和性能指标。测试结果表明,该系统能够实现所需的功能,运行状况尚可并无明显缺点。本文首先实现了基于Python的Flask+Vue物业管理系统技术的发
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值