forward:内部重定向;<jsp:forward page="xxxx.html"></jsp:forward>;

redirect:外部重定向;

执行forward时,浏览器不知道服务器发送的内容是从何处来,浏览器地址栏中还是原来的地址;

执行redirect时,服务器端告诉浏览器重新去请求地址

前端中,forward和redirect的区别

相关文章:

  • 2021-08-24
  • 2021-12-26
  • 2021-07-09
猜你喜欢
  • 2021-10-13
  • 2021-06-06
  • 2021-07-25
相关资源
相似解决方案