`

struts-config.xml

阅读更多
<?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="userForm"
			type="org.jb.t309.team5.web.form.UserForm" />
		<form-bean name="roleForm"
			type="org.jb.t309.team5.web.form.RoleForm" />
		<form-bean name="activityForm"
			type="org.jb.t309.team5.web.form.ActivityForm" />
		<form-bean name="customerForm"
			type="org.jb.t309.team5.web.form.CustomerForm" />
		<form-bean name="cstLinkmanForm"
			type="org.jb.t309.team5.web.form.CstLinkmanForm" />
		<form-bean name="chanceForm"
			type="org.jb.t309.team5.web.form.ChanceForm" />
		<form-bean name="serviceForm"
			type="org.jb.t309.team5.web.form.ServiceForm" />
		<form-bean name="dictForm"
			type="org.jb.t309.team5.web.form.DictForm" />
		<form-bean name="planForm"
			type="org.jb.t309.team5.web.form.PlanForm" />
		<form-bean name="svrRptForm"
			type="org.jb.t309.team5.web.form.SvrRptForm" />
		<form-bean name="productForm"
			type="org.jb.t309.team5.web.form.ProductForm" />
		<form-bean name="lostForm"
			type="org.jb.t309.team5.web.form.LostForm" />
		<form-bean name="ordersForm"
			type="org.jb.t309.team5.web.form.OrdersForm" />
		<form-bean name="consRptForm"
			type="org.jb.t309.team5.web.form.ConsRptForm" />
		<form-bean name="storageForm"
			type="org.jb.t309.team5.web.form.StorageForm" />
		<form-bean name="contrRptForm"
			type="org.jb.t309.team5.web.form.ContrRptForm">
		</form-bean>
		<form-bean name="validatorDemoForm"
			type="org.jb.t309.team5.web.form.ValidatorDemoForm" />
		<form-bean name="detailRoleForm"
			type="org.jb.t309.team5.web.form.DetailRoleForm" />
	</form-beans>

	<global-exceptions>
		<exception key="errors.permissionException"
			type="org.jb.common.exceptions.PermissionException"
			path="/permission_errros.jsp" scope="request"
			handler="org.jb.common.exceptions.PermissionExceptionHandler" />
	</global-exceptions>

	<action-mappings>
		<!-- 用户相关 -->
		<action attribute="userForm" name="userForm" parameter="o"
			path="/user" scope="request"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="list" path="/WEB-INF/jsp/user/userList.jsp" />
			<forward name="add" path="/WEB-INF/jsp/user/addUser.jsp" />
			<forward name="login" path="/login.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/user/userDetail.jsp" />
			<forward name="error" path="/WEB-INF/jsp/user/msg.jsp" />
			<forward name="intoAll" path="/intoAll.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/user/editUser.jsp" />
			<forward name="assignRole" path="/WEB-INF/jsp/user/assignRole.jsp" />
		</action>
		<!-- 角色相关 -->
		<action attribute="roleForm" name="roleForm" parameter="o"
			path="/role" scope="request"
			type="org.springframework.web.struts.DelegatingActionProxy"
			validate="false">
			<forward name="list" path="/WEB-INF/jsp/role/roleList.jsp" />
			<forward name="add" path="/WEB-INF/jsp/role/addRole.jsp" />
			<forward name="assignRights"
				path="/WEB-INF/jsp/role/assignRights.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/role/roleDetail.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/role/editRole.jsp" />
			<forward name="toRightListById"
				path="/WEB-INF/jsp/role/displayRightByRoleId.jsp">
			</forward>
		</action>
		<action attribute="activityForm"
			input="/WEB-INF/jsp/cust/cust/activities_add.jsp" name="activityForm"
			parameter="o" path="/activity" scope="request"
			type="org.springframework.web.struts.DelegatingActionProxy">
			<forward name="index" path="/intoAll.jsp" />
			<forward name="add"
				path="/WEB-INF/jsp/cust/cust/activities_add.jsp" />
			<forward name="toActivity"
				path="/WEB-INF/jsp/cust/cust/activities.jsp" />
			<forward name="msg" path="/WEB-INF/jsp/cust/cust/msg.jsp" />
			<forward name="edit"
				path="/WEB-INF/jsp/cust/cust/activities_edit.jsp" />
		</action>

		<!-- 结束 -->
		<action attribute="customerForm" name="customerForm"
			parameter="o" path="/customer" scope="request"
			type="org.jb.t309.team5.web.action.CustomerAction"
			validate="false">
			<forward name="list" path="/WEB-INF/jsp/cust/cust/list.jsp" />
			<forward name="toActivity"
				path="/WEB-INF/jsp/cust/cust/activities.jsp" />
			<forward name="error" path="/WEB-INF/jsp/cust/cust/msg.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/cust/cust/edit.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/cust/cust/detail.jsp" />
		</action>
		<!-- 联系人 -->
		<action attribute="cstLinkmanForm" input="/cstLinkman.jsp"
			name="cstLinkmanForm" parameter="o" path="/cstLinkman"
			scope="request"
			type="org.jb.t309.team5.web.action.CstLinkmanAction">
			<forward name="linkman"
				path="/WEB-INF/jsp/cust/cust/linkman.jsp" />
			<forward name="success"
				path="/WEB-INF/jsp/cust/cust/linkman_add.jsp" />
			<forward name="succ"
				path="/WEB-INF/jsp/cust/cust/linkman_edit.jsp" />
			<forward name="msg" path="/WEB-INF/jsp/cust/cust/list.jsp" />
		</action>
		<!-- 销售机会 -->
		<action attribute="chanceForm" name="chanceForm" parameter="o"
			path="/chance" scope="request"
			type="org.jb.t309.team5.web.action.ChanceAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/sale/list.jsp" />
			<forward name="add" path="/WEB-INF/jsp/sale/add.jsp" />
			<forward name="dispatch"
				path="/WEB-INF/jsp/sale/dispatch.jsp" />
			<forward name="error" path="/WEB-INF/jsp/sale/msg.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/sale/edit.jsp" />
		</action>
		<!-- 服务 -->
		<action attribute="serviceForm" input="/service.jsp"
			name="serviceForm" parameter="o" path="/service" scope="request"
			type="org.jb.t309.team5.web.action.ServiceAction">
			<forward name="deal"
				path="/WEB-INF/jsp/cust/service/deal.jsp" />
			<forward name="toArch"
				path="/WEB-INF/jsp/cust/service/arch.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/cust/service/detail.jsp" />
			<forward name="succ"
				path="/WEB-INF/jsp/cust/service/dispatch.jsp" />
			<forward name="dealDetail"
				path="/WEB-INF/jsp/cust/service/deal_detail.jsp" />
			<forward name="success"
				path="/WEB-INF/jsp/cust/service/add.jsp" />
			<forward name="feedback"
				path="/WEB-INF/jsp/cust/service/feedback_detail.jsp" />
			<forward name="toFeedback"
				path="/WEB-INF/jsp/cust/service/feedback.jsp" />
		</action>
		<!-- 数据字典 -->
		<action attribute="dictForm" name="dictForm" parameter="o"
			path="/dict" scope="request"
			type="org.jb.t309.team5.web.action.DictAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/basd/dict.jsp" />
			<forward name="add" path="/WEB-INF/jsp/basd/dict_add.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/basd/dict_edit.jsp" />

		</action>
		<!-- 开发计划 -->
		<action attribute="planForm" name="planForm" parameter="o"
			path="/plan" scope="request"
			type="org.jb.t309.team5.web.action.PlanAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/sale/dev.jsp" />
			<forward name="plan" path="/WEB-INF/jsp/sale/dev_plan.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/sale/dev_detail.jsp" />
			<forward name="execute"
				path="/WEB-INF/jsp/sale/dev_execute.jsp" />
			<forward name="error" path="/WEB-INF/jsp/sale/msg.jsp" />
		</action>
		<!-- 订单 -->
		<action parameter="o" path="/orders" attribute="ordersForm"
			name="ordersForm" type="org.jb.t309.team5.web.action.OrdersAction">
			<forward name="ordersDetail"
				path="/WEB-INF/jsp/cust/cust/orders_detail.jsp" />
			<forward name="toOrders"
				path="/WEB-INF/jsp/cust/cust/orders.jsp" />
		</action>
		<!-- 客户服务分析 -->
		<action attribute="svrRptForm" input="/form/svrRpt.jsp"
			name="svrRptForm" parameter="o" path="/svrRpt" scope="request"
			type="org.jb.t309.team5.web.action.SvrRptAction">
			<forward name="success" path="/WEB-INF/jsp/rept/ser.jsp" />
		</action>
		<!-- 产品信息 -->
		<action attribute="productForm" name="productForm" parameter="o"
			path="/product" scope="request"
			type="org.jb.t309.team5.web.action.ProductAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/basd/product.jsp" />
		</action>
		<!-- 客户流失 -->
		<action attribute="lostForm" input="/form/lost.jsp"
			name="lostForm" parameter="o" path="/lost" scope="request"
			type="org.jb.t309.team5.web.action.LostAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/cust/lost/list.jsp" />
			<forward name="respite"
				path="/WEB-INF/jsp/cust/lost/lost_delay.jsp" />
			<forward name="affirm"
				path="/WEB-INF/jsp/cust/lost/lost_confirm.jsp" />
		</action>
		<!-- 客户流失分析 -->
		<action attribute="lostForm" name="lostForm" parameter="o"
			path="/lostRpt" scope="request"
			type="org.jb.t309.team5.web.action.LostRptAction">
			<forward name="list" path="/WEB-INF/jsp/rept/lost.jsp" />
		</action>
		<!-- 库存管理 -->
		<action attribute="storageForm" name="storageForm" parameter="o"
			path="/storage" scope="request"
			type="org.jb.t309.team5.web.action.StorageAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/basd/storage.jsp" />
		</action>
		<!-- 客户构成分析 -->
		<action attribute="consRptForm" name="consRptForm" parameter="o"
			path="/consRpt" scope="request"
			type="org.jb.t309.team5.web.action.ConsRptAction" validate="false">
			<forward name="list" path="/WEB-INF/jsp/rept/cons.jsp" />
			<forward name="error" path="/WEB-INF/jsp/rept/msg.jsp" />
		</action>
		<action attribute="validatorDemoForm" input="/validator.jsp"
			name="validatorDemoForm" parameter="o" path="/validatorDemo"
			scope="request"
			type="org.jb.t309.team5.web.action.ValidatorDemoAction" />

		<!-- 客户贡献分析 -->
		<action attribute="contrRptForm" input="/contrRpt.jsp"
			name="contrRptForm" parameter="o" path="/contrRpt" scope="request"
			type="org.jb.t309.team5.web.action.ContrRptAction">
			<forward name="success" path="/WEB-INF/jsp/rept/contr.jsp" />
		</action>
		<!-- 详细权限 -->
		<action attribute="detailRoleForm" name="detailRoleForm"
			parameter="o" path="/detailRole" scope="request"
			type="org.jb.t309.team5.web.action.DetailRoleAction"
			validate="false" >
			<forward name="list" path="/WEB-INF/jsp/role/roleList.jsp" />
			<forward name="add" path="/WEB-INF/jsp/role/addRole.jsp" />
			<forward name="displayDtailRights"
				path="/WEB-INF/jsp/role/assignDetailRights.jsp" />
			<forward name="detail"
				path="/WEB-INF/jsp/role/roleDetail.jsp" />
			<forward name="edit" path="/WEB-INF/jsp/role/editRole.jsp" />
			<forward name="toRightListById"
				path="/WEB-INF/jsp/role/displayRightByRoleId.jsp">
			</forward>
		</action>
	</action-mappings>

	<controller
		processorClass="org.springframework.web.struts.DelegatingRequestProcessor">
	</controller>

	<message-resources
		parameter="org.jb.t309.team5.ApplicationResources" />

	<plug-in
		className="org.springframework.web.struts.ContextLoaderPlugIn">
		<set-property property="contextConfigLocation"
			value="classpath:applicationContext.xml" />
	</plug-in>
	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
		<set-property property="pathnames"
			value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
	</plug-in>
</struts-config>
分享到:
评论

相关推荐

    Struts框架中struts-config.xml文件配置小结

    ### Struts框架中struts-config.xml文件配置详解 #### 一、引言 在Java Web开发领域,Struts是一个非常重要的MVC(Model-View-Controller)框架,它极大地简化了Web应用程序的开发过程。而在Struts框架中,`struts...

    Struts struts-config.xml配置

    ### Struts struts-config.xml配置详解 #### 一、引言 在Java Web开发领域,Struts框架一直是构建MVC架构应用的重要工具之一。而`struts-config.xml`配置文件则是Struts应用的核心配置文件,它负责管理Struts应用中...

    struts-config.xml struts标准配置文件 struts-config

    struts-config.xml struts标准配置文件 struts-config

    struts-config.xml配置文件详解

    Struts-config.xml 配置文件详解 Struts-config.xml 是 Struts 框架的主要配置文件,用于配置 Struts 应用程序的各种设置。在该文件中,可以配置数据源、Form Bean、Action 和插件等信息。下面是 Struts-config.xml...

    Struts-config.xml配置详解

    Struts的配置文件通常命名为struts-config.xml,它是整个Struts应用的核心配置文件,通过定义一系列的XML元素来设定框架的不同功能和行为。下面将详细介绍struts-config.xml中8个主要配置元素的功能和使用方法。 1....

    配置struts--config.xml详解

    在 Struts 应用程序中,`struts-config.xml` 文件是核心配置文件,它定义了应用的行为、控制器(Actions)、数据源(Form Beans)以及视图(JSP 页面)之间的关系。本文将深入探讨 `struts-config.xml` 的主要元素和...

    struts-config.xml配置详解

    韩顺平视频配套struts-config.xml配置详解.txt

    org.springframework.web.struts-3.1.0.M2.jar

    同时,Struts的配置文件(struts-config.xml或struts2的struts.xml)也需要进行相应的调整,引入Spring的插件和配置信息。 `springframework-license.txt`文件则包含了Spring框架的许可协议,它规定了软件的使用、...

    SSH之Struts1之struts-config.xml常用配置详解(3-21-2008)

    SSH之Struts1之struts-config.xml常用配置详解(3-21-2008)

    struts-config.xml 详解

    `struts-config.xml`是Struts框架的核心配置文件,它定义了应用程序的行为和组件之间的交互。这个文件的主要目的是提供一个集中式的配置点,用于设置数据源、表单bean、异常处理、动作映射等关键元素。以下是每个...

    struts-config.xml配置详解.txt

    这个strut-config配置详解是韩顺平老师指定的 很多同学都看过韩老师的视频或者上过韩老师的课程吧

    struts-config.xml配置

    `struts-config.xml`是Struts框架的核心配置文件,它定义了应用程序的行为、请求映射、数据源等关键元素。这个配置文件位于Web应用的WEB-INF目录下,是开发者与Struts框架交互的主要方式。 **1. 框架组件配置** `...

    Struts-config.xml 配置详解.doc

    Struts-config.xml是Struts框架的核心配置文件,用于定义应用程序的行为和组件间的交互。这个XML文件按照特定的结构和约定来组织,包含了多个主要元素,这些元素定义了数据源、表单bean、全局转发、动作映射、控制器...

    struts-1.3.8-all.zip

    使用Struts 1.3.8时,开发者需要配置web.xml和struts-config.xml,定义ActionServlet、Action、ActionForm等元素。此外,还需要编写ActionForm类,实现业务逻辑的Action类,以及使用JSP和Struts标签创建用户界面。 ...

    在struts-config.xml中配置数据源

    在Struts框架中,`struts-config.xml`是核心配置文件,用于定义动作映射、数据源等关键组件。本篇文章将深入探讨如何在`struts-config.xml`中配置数据源,以及这在实际开发中的意义和作用。 数据源(DataSource)是...

    struts-config.xml文件的配置

    Struts-config.xml文件是Struts框架的核心配置文件,它定义了应用程序的行为、数据源、ActionForm Bean等关键元素。以下是关于struts-config.xml文件配置的详细说明: 1. **数据源配置(Data Sources)**: - `...

Global site tag (gtag.js) - Google Analytics