huanglibin
客户端跳转:

//不保存request属性到下个页面,通过<jsp:param name="" value=""/>传参

response.sendRedirect("index2.jsp");

response.setHeader("Refresh","3;URL=index2.jsp");//定时跳转


<meta http-equiv="refresh"  content="3;URL=index2.jsp">  //定时跳转

 


服务器端跳转:

//保存request属性到下个页面,通过对url地址的重写传参

<jsp:forward page="login.jsp"/>

request.getRequestDispatcher("index2.jsp").forward(request,response);

 


 

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2021-12-04
  • 2021-06-23
  • 2021-04-20
  • 2021-08-28
  • 2021-11-13
  • 2021-10-22
猜你喜欢
  • 2021-08-27
  • 2021-12-31
  • 2021-12-31
  • 2022-02-08
  • 2021-10-15
  • 2021-09-04
相关资源
相似解决方案