无法找到Servlet action
struts-config.xml<struts-config>
<data-sources />
<form-beans >
<form-bean name="successForm" type="org.elemy.managerbook.struts.form.SuccessForm" />
<form-bean name="loginForm" type="org.elemy.managerbook.struts.form.LoginForm" />
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="successForm"
input="/index.jsp"
name="successForm"
path="/success"
scope="request">
<forward name="success" path="/success.jsp"></forward>
<forward name="error" path="/error.jsp"></forward>
</action>
<action
attribute="loginForm"
input="/index.jsp"
name="loginForm"
path="/login"
scope="request">
<forward name="login" path="/jsp/login.jsp"></forward>
<forward name="error" path="/error.jsp"></forward>
</action>
</action-mappings>
<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
<message-resources parameter="org.elemy.managerbook.struts.ApplicationResources" />
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>
</struts-config>
当我把<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>
<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
去掉的话,就会正常执行,
大家帮帮忙