submit()
<a href=> </a>

解决方案 »

  1.   

    jsp里面的:好象有个什么send redirect的。
    javascript里面的:window.location
      

  2.   

    是response.Redirect()吗?
    上面几种都有人用吗?
      

  3.   

    写javascript方法,在方法里用document.form[0].action="";
    document.form[0].submit();
    应该可以吧!
      

  4.   

    不知道你说的页面跳转是什么意思,但上面所说的方法都是相当于一个超链接。  如果在form 里面我们用  action="../x.jsp",form相对简单,好用。
      response.Redirect(url)主要用于返回一个页面,可做身份验证等等。
      看你怎么用咯。
      

  5.   

    location.href='aa.jsp'
    这个在form中
    this.form.action='aa.jsp'
      

  6.   

    <a href="a.jsp" target="_self">
    <jsp:forward page="A.jsp"/>
    response.Redirect(url)
    <form name="Form1" method="post" ACTION="B.jsp">还javascript的方法,例如location
      

  7.   

    <meta http-equiv="refresh" content="5;url=http://xxxx.com">
      

  8.   

    给你另一种方法:
       <jsp:forward page="index.jsp" />
      

  9.   

    response.setContentType("text/html; charset=GBK");
    //可以传递需要的数据
    request.getAttribute("var",var);
    RequestDispatcher dispatcher;
    dispatcher = getServletContext().getRequestDispatcher("/jsp/test.jsp");
    dispatcher.include(request,response);
      

  10.   

    那么 <jsp:forward page="index.jsp" />和response.sendRedirect("index.jsp")有什么不同呢?
      

  11.   

    给你另一种方法:
    <form method="POST" name="main_menu" action="mainmenu.jsp"><input type="submit" value="確定"></td></form>
      

  12.   

    <meta http-equiv="refresh" content="5;url=http://xxxx.com">
    可以修改你的时间!
    response.sendRedirect(URL);
    在jsp中