1.Jsp页面跳转的第一种方式:提交表单
代码如下:
<!--第一种跳转方式:提交表单-->
<form name="form" method="post" action="page2.jsp">
<input type="submit" value="跳转1">
</form>
2.Jsp页面跳转的第二种方式:Javascript实现
代码如下:
<script type="text/javascript">
function next(){
window.location = "page2.jsp"; }
</script>
3.Jsp页面跳转的第三种方式:重定向分
代码如下:
<!--重定向-->
<% //1.
response.sendRedirect("page2.jsp");
%>
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-