你看一下ActioneditRegistration.java文件,它的ActionForward是不是就是指向registration.jsp

解决方案 »

  1.   

    editRegistration.java 中有着么一句
    form = new RegistrationForm();
    但表单到底怎么产生的,求救
      

  2.   

    具体看看struts-config.xml文件中的配置,看看这个
        <action    path="/editRegistration"
                   type="com.editRegistrationAction"
                   name="RegistrationForm">
          <forward name="success"              path="/registration.jsp"/>
        </action>
    如果是这么配置的,肯定会出现上面的情况
      

  3.   

    <action    path="/editRegistration"
                   type="org.apache.struts.webapp.example.EditRegistrationAction"
              attribute="registrationForm"
                  scope="request"
               validate="false">
          <forward name="success"              path="/registration.jsp"/>
        </action>
    看example 中 struts-config.xml文件中的一段。
    这是他 的action bean  
    然后在 EditRegistrationAction 中 用 
    return (mapping.findForward("success")); 
    导航到 registration.jsp 页面~~