你的action里怎么写的
先看看action有没有执行
在action里打出form提交的值

解决方案 »

  1.   

    struts.RegisterAction  这个应该是你的Action吧,在这里面你的forward是怎么指定的呢,看看代码
      

  2.   

    先看看action有没有执行
    在action里打出form提交的值 ?怎么看action有沒执行?在action里打form提交的值,怎么打?
      

  3.   

    RegisterAction:
    public class RegisterAction extends Action{
    public ActionForward execute(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException,ServletException
    {
    RegistrationForm rf = (RegistrationForm) form;
    String username = rf.getUsername();
    String password1 = rf.getPassword1();
    String password2 = rf.getPassword2();
    String target = "failure";
    if (password1.equals(password2)){
    target = new String("success");
    }
    return (mapping.findForward(target));
    }
    }
      

  4.   

    <action = "jspbook.jsp">吧在前面的跳转不能实现的。
      

  5.   

    知道了RegisterAction以前用的perform方法,后來改成execute后,未重新compile