struts-config.xml

来源:互联网 发布:福建乐游网络 编辑:程序博客网 时间:2024/04/27 22:02

<?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="addForm" type="people.struts.form.AddForm" />

    <form-bean name="addmoneyForm" type="people.struts.form.AddmoneyForm" />

 

  </form-beans>

 

  <global-exceptions />

  <global-forwards />

  <action-mappings >

    <action

      path="/select"

      validate="false" >

      <forward name="ok" path="/zhlist.jsp" /></action>

    <action

      attribute="addForm"

      name="addForm"

      path="/add"

      scope="request">

      <forward name="ok" path="/addchenggong.jsp" />

      <forward name="shibai" path="/addshibai.jsp" />

      </action>

    <action

      attribute="addmoneyForm"

      name="addmoneyForm"

      path="/addmoney"

      scope="request">

     <forward name="ok" path="/addchenggong.jsp" />

      <forward name="shibai" path="/addshibai.jsp" />

     </action>

    <action path="/deletezh" validate="false" >

    <forward name="ok" path="/select.do"></forward>

    </action>

    <action path="/selectConsumer" validate="false">

    <forward name="ok" path="/selectConsumer.jsp" />

    </action>

 

  </action-mappings>

 

  <message-resources parameter="people.struts.ApplicationResources" />

 

 

 

  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">

  <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml"/>

  </plug-in>

 

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

</struts-config>

 

原创粉丝点击