1     <!-- response.setHeader("refresh","3;url=你想跳的页面")-->
2 <%-- 3 response.setHeader("Refresh","3;URL=http://localhost:8080/te02/forword1.jsp"); 4 --%> 5 <!-- 它两个一样下面这个(/te03)前面必须要带斜杠"/" -->

<%-- 7 response.setHeader("Refresh","3;URL=http:/te03/forword1.jsp"); 8 --%>

*response.setHeader("refresh","3;url=你想跳的页面")不能跳到web-inf安全目录下的jsp页面

它两个在web-inf文件的jsp设置报错。也就是说它们不能在web-inf安全目录下的jsp页面使用

相关文章:

  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
相关资源
相似解决方案