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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值