检查你的配置文件:
struts-config.xml
1.
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>
2.
<action
      attribute="loginForm"
      input="/login.jsp"
      name="loginForm"
      path="/login"
      scope="request"
      type="org.springframework.web.struts.DelegatingActionProxy">application.xml
3.
<bean name="/login" class="com.yourcompany.struts.action.LoginAction" singleton="false">
.
.
</bean>