jsp动作元素:<jsp:forward>动作元素:
例子:
<head>
<title>JSP include test</title>
</head>
<body>
<%
System.out.println("跳转前:");
%>
<jsp:forward page="jspstatement.jsp"></jsp:forward>
<%
System.out.println("跳转后:");
%>
</body>
</html>
运行时会停止当前jsp页面的执行,转向执行jspstatement.jsp

本文介绍了JSP中的<jsp:forward>动作元素的使用方法,并通过一个具体示例展示了如何利用该元素实现页面之间的跳转。此动作会使当前页面的后续代码不再执行而直接转向目标页面。
895

被折叠的 条评论
为什么被折叠?



