<action type="com.RegUserAction" validate="false" scope="request" path="/regUserAction">
换成下面的试试
<action type="com.RegUserAction" validate="false" scope="request" path="/regUserAction" name="regUserForm">

解决方案 »

  1.   

    把你的struts-config.xml重新配置一下,如下:
    <action-mappings>
    <action type="com.RegUserAction" validate="false" scope="request" path="/test/regUserAction">
    <forward name="success" path="/test/messageSuccess.jsp"/>
    </action>
    </action-mappings>
    jsp文件中的form的参数action重新配一下,如下:
    <html:form action="/test/regUserAction" focus="logname">
    这样看行不行!!
      

  2.   

    还是不行,错误讯息变为:
    org.apache.jasper.JasperException: Cannot retrieve definition for form bean null on action /test/regUserAction
      

  3.   

    action中少写了一个name属性,用如下代码试试!!
    <action-mappings>
    <action name="regUserForm" type="com.RegUserAction" validate="false" scope="request" path="/test/regUserAction">
    <forward name="success" path="/test/messageSuccess.jsp"/>
    </action>
    </action-mappings>
      

  4.   

    struts自带例子struts-blank
    用他的web.xml和struts-config.xml
    把struts-config.xml里的涉及到的配置内容改为空
    比如说        <form-bean            name="logonForm"            type="org.apache.struts.action.DynaActionForm">            <form-property                name="username"                type="java.lang.String"/>            <form-property                name="password"                type="java.lang.String"/>    end sample -->
        </form-beans>
    改为 <form-bean>
         </form-beans>
      

  5.   

    <html:form action="/regUserAction" focus="logname">
    改成
    <html:form action="regUserAction" focus="logname">
      

  6.   

    FORM与ACTION类放在STRUTS-CONFIG.XML文件对应的PACKAGE中。
      

  7.   

    你试试在JSP页面不用<html:form/>标签,我同事也遇到过,后来在action加了一个name属性才搞定,但是我以前很少用Struts标签,可以在action中没有name,应该是Struts标签搞的鬼
      

  8.   

    actionMapping里少了一个 name 啊!加上:name=name="regUserForm"  和你的 formbean 的名字要 一样.....