JSP页面中实现的页面跳转4种方式
1.JSP网页中HTML代码中HEAD上:
<meta http-equiv="refresh" content="5;url='image.jsp'">
2.JSP网页
<% response.sendRedirect("/test/image.jsp");%>
路径是绝对路径
3.JSP网页中<jsp:forward>标签
<jsp:forward page="image.jsp"></jsp:forward>
4.JAVASCRIPT代码
<script> window.location.href='/jsptest/image.jsp'; </script>