<%@ page language="java" contentType="text/html;charset=gb2312" %>
<%@page import="com.sun.corba.se.spi.protocol.ForwardException"%>
<html>
<head>
<title>new</title>
</head>
<body>
<%
System.out.println("jsp:forward动作指令之前被执行");
%>
<jsp:forward page="for.jsp"/>
<%
System.out.println("jsp:forward动作指令之后被执行");
%>
</body>
</html>
让后在console中打印输出
jsp:forward动作指令之前被执行
,也就是说,当执行到for.jsp以后就不会再回来啦。