我的Struts2文件是
<!-- Struts 2 

解决方案 »

  1.   

    报的错是ERROR - Exception starting filter struts2
    Action class [loginAction] not found - action - file:/D:/apache-tomcat-5.5.26/webapps/WebCall/WEB-INF/classes/struts.xml:12:42
      

  2.   

    class="loginAction"前面的包名呢?  把包名写全啊
      

  3.   

    Action class [loginAction] not found - action - file:/D:/apache-tomcat-5.5.26/webapps/WebCall/WEB-INF/classes/struts.xml:12:42我觉得已经说的很清楚了没有找到struts.xml要么就是你位置放错了,没有统一,LZ检查下如果还不行再一起看看是不是别处错了
      

  4.   

    昏,看错了……是Action Not found对不起楼主了……罪过罪过
      

  5.   

    在struts.xml中的class是由spring托管的,但是托管后就好使了。
      

  6.   

    web.xml中有
    <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>吗
      

  7.   

    配置Spring监听器
    web.xml<listener>  
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>  
    </listener> LZ参照下这个:http://hpfyeah.javaeye.com/blog/57066
      

  8.   

    applicationContext.xml 文件中 注册一个 loginAction 的 bean <!-- 登录 --> <bean id="loginAction" lazy-init="true" singleton="false" class="包的全名.LoginAction"> <property name="" ref="" /> </bean>