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>
  <data-sources />
  <form-beans >
    <form-bean name="newsForm" type="com.aptech.accp.web.form.NewsForm" />

  </form-beans>

  <global-exceptions />
  <global-forwards />
  <action-mappings >
    <action
      attribute="newsForm"
      input="/add.jsp"
      name="newsForm"
      parameter="op"
      path="/news"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy">
      <set-property property="cancellable" value="true" />
      <forward name="success" path="/newsList.jsp" />
    </action>

  </action-mappings>

  <message-resources parameter="com.aptech.accp.web.ApplicationResources" />
</struts-config>

你可能感兴趣的:(struts)