Struts+hibernate+spring, 多模块Struts配置文件, 不能找到spring的DelegatingActionProxy?

05-12-28 James Xu
1. web.xml

<servlet id="Servlet_1">

<servlet-name>action</servlet-name>

<display-name>ActionServlet</display-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

<init-param>

<param-name>config</param-name>

<param-value>/WEB-INF/struts-config.xml</param-value>

</init-param>

<init-param>

<param-name>config/system</param-name>

<param-value>/WEB-INF/struts-config-system.xml</param-value>

</init-param>

<init-param>

<param-name>debug</param-name>

<param-value>5</param-value>

</init-param>

<init-param>

<param-name>detail</param-name>

<param-value>0</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>

2. struts-config.xml

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

<set-property property="contextConfigLocation"

value="/WEB-INF/applicationContext-hibernate.xml"/>

</plug-in>

3. struts-config-system.xml

<action path="/loginout" type="org.springframework.web.struts.DelegatingActionProxy"

parameter="act"

name="logonForm">

</action>

4.applicationContext-hibernate.xml

<bean name="/loginout" class="com.comp.system.action.LoginoutAction" singleton="false">

<property name="systemService"><ref bean="SystemService"/></property>

</bean>

不能找到spring当中的DelegatingActionProxy: /loginout?

猜你喜欢