struts-config.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <form-bean name="y_LoginForm" type="com.yuntong.action.actionform.Y_LoginForm" />
  7. </form-beans>
  8. <global-exceptions />
  9. <global-forwards />
  10. <action-mappings >
  11. <action path="/y_CheckNum" type="com.yuntong.action.ajaxaction.Y_CheckNumAction" />
  12. <action
  13. attribute="y_LoginForm"
  14. input="/Y_Login.jsp"
  15. name="y_LoginForm"
  16. path="/y_Login"
  17. scope="request"
  18. type="org.springframework.web.struts.DelegatingActionProxy">
  19. <forward name="ok" path="/Y_Index.jsp" />
  20. <forward name="error" path="/Y_Login.jsp" />
  21. </action>
  22. <action forward="/Y_Login.jsp" path="/y_GoLoginPage" />
  23. <action forward="/Y_Index.jsp" path="/y_GoIndex" />
  24. <action path="/y_Logout" type="com.yuntong.action.Y_LogoutAction" >
  25. <forward name="login" path="/Y_Login.jsp" />
  26. </action>
  27. <action path="/y_getInfo" type="org.springframework.web.struts.DelegatingActionProxy" />
  28. </action-mappings>
  29. <controller processorClass="com.yuntong.requestProcessor.MyRequestProcessor"></controller>
  30. <message-resources parameter="com.yuntong.ApplicationResources" />
  31. <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
  32. <set-property property="contextConfigLocation" value="/WEB-INF/classes/spring.xml"/>
  33. </plug-in>
  34. </struts-config>