第一种:window.location.href="login.jsp?backurl="+window.location.href;
第二种:window.history.back(-1);
第三种:window.navigate("top.jsp");
第四种:self.location='top.htm';
第五种:top.location='xx.jsp';

  1. redirect 方式
    response.sendRedirect("/a.jsp");
  2. forward方式
    RequestDispatcher dispatcher = request.getRequestDispatcher("/a.jsp");
    dispatcher .forward(request, response);
posted on 2016-08-09 13:28  cyy_13  阅读(685)  评论(0)    收藏  举报