是路径方面的问题!在前面要加/do/就可以了:)

解决方案 »

  1.   

    在web.xml中加入:
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    在strustconfig.xml中form和action写法应为:
    <form-bean name="registrationForm" type="com.wrox.pjsp2.struts.registration.RegistrationForm" /><action-mappings>
    <action name="registrationForm" type="com.wrox.pjsp2.struts.registration.EditRegistrationAction" validate="false" scope="request" path="/editRegistration">
          <forward name="success" path="/registration.jsp" />
    </action>
    </action-mappings>