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="loginForm" type="struts.form.LoginForm" />
    <form-bean name="modifyForm" type="struts.form.ModifyForm" />

  </form-beans>

  <global-exceptions />
  <global-forwards >
    <forward name="success" path="/success.jsp" />
    <forward name="failure" path="/failure.jsp" />
    <forward name="modify" path="/modify.jsp" />
  </global-forwards>

  <action-mappings >
    <action
      attribute="loginForm"
      name="loginForm"
      path="/login"
      scope="session"
      type="org.springframework.web.struts.DelegatingActionProxy" />
    <action
    path="/modify"
    type="org.springframework.web.struts.DelegatingActionProxy" />
    <action
      attribute="modifyForm"
      name="modifyForm"
      path="/domodify"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy" />

  </action-mappings>

  <message-resources parameter="struts.ApplicationResources" />
 
  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
  </plug-in>
 
 
</struts-config>

你可能感兴趣的:(apache,xml,struts)