<%@pagecontentType="text/html"import="java.util.*"pageEncoding="UTF-8"%>

<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
<html>
<head>

<title>thisis跳转</title>

</head>

<body>
<%//执行页面跳转,通过forward完成跳转,并传了一个参数
pageContext.forward("pagecontext_forward.jsp?info=CIM");
%>

*******************************************

</body>
</html>

******************************************************************************

<%@pagecontentType="text/html"import="java.util.*"pageEncoding="UTF-8"%>

<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN">
<html>
<head>

<title>thisis跳转22</title>

</head>
<body>
<%//从session属性范围取出属性,并执行向下转型的操作
Stringinfo=pageContext.getRequest().getParameter("info");
%><!--使用getRequest方法取得ServletRequest对象,然后调用getParameter取得参数内容-->
<h3>info=<%=info%></h3>
<h3>realpath=<%=pageContext.getServletContext().getRealPath("/")%></h3>
*******************************************

</body>
</html>