struts相关jar都导入应用了吗?

解决方案 »

  1.   

    <action attribute="loginForm" input="/index.jsp" name="loginForm" path="/loginAction" scope="request" type="com.action.LoginAction">
          <forward name="success" path="/index.jsp" />
        </action>这一段有问题吧,attribute里面不应该是form,而应该是action,应该是loginAction
      

  2.   

    楼主的web.xml是自已写的?好想没看到这样的代码啊
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>attribute:设置和action关联的ActionForm Bean在request或session范围内的属性key.例如,假定FormBean存在于request范围内,并且此项为"myBean",那么request.getAttribute("myBean")就可以返回该Bean的实例。此项为可选项。