struts-config-SCGL.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
  3. <struts-config>
  4. <data-sources />
  5. <form-beans />
  6. <global-exceptions />
  7. <global-forwards />
  8. <action-mappings >
  9. <!-- 从主页先到这个 Action -->
  10. <action
  11. path="/m_scgl_1"
  12. scope="request"
  13. type="org.springframework.web.struts.DelegatingActionProxy"
  14. validate="false">
  15. <forward name="ok" path="/M_scgl_1.jsp" />
  16. </action>
  17. <!-- 删除 -->
  18. <action path="/m_delteInfo" type="org.springframework.web.struts.DelegatingActionProxy">
  19. <forward name="delete" path="/m_scgl_1.do" redirect="true"/>
  20. </action>
  21. <action path="/m_select" type="org.springframework.web.struts.DelegatingActionProxy" >
  22. <forward name="select" path="/m_scgl_1.do" />
  23. </action>
  24. <!-- 添加 -->
  25. <action
  26. path="/addInfo"
  27. type="org.springframework.web.struts.DelegatingActionProxy"
  28. validate="false">
  29. <forward name="addok" path="/m_scgl_1.do" />
  30. </action>
  31. <!-- 更新 -->
  32. <action
  33. path="/updateInfo"
  34. type="org.springframework.web.struts.DelegatingActionProxy"
  35. validate="false">
  36. <forward name="updateok" path="/m_scgl_1.do" />
  37. </action>
  38. <action
  39. path="/findById"
  40. type="org.springframework.web.struts.DelegatingActionProxy"
  41. validate="false">
  42. <forward name="findok" path="/M_scgl_2.jsp" />
  43. <forward name="error" path="/M_scgll_2.jsp" />
  44. </action>
  45. <action
  46. path="/m_updataAjaxAction"
  47. type="org.springframework.web.struts.DelegatingActionProxy"
  48. validate="false" />
  49. <action
  50. path="/m_typing"
  51. type="org.springframework.web.struts.DelegatingActionProxy"
  52. validate="false" />
  53. <action path="/m_googleTHDJ" type="org.springframework.web.struts.DelegatingActionProxy" />
  54. </action-mappings>
  55. <controller processorClass="com.yuntong.requestProcessor.MyRequestProcessor"></controller>
  56. <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
  57. <set-property property="contextConfigLocation" value="/WEB-INF/classes/spring.xml"/>
  58. </plug-in>
  59. </struts-config>