0
点赞
收藏
分享

微信扫一扫

jsp代码实例第342课

爱奔跑的读书者 2022-02-24 阅读 174

code342.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%-- jsp forward 与内置对象的使用 --%>
<%
	request.setAttribute("name", "tom");
	request.setAttribute("age", "30");
	request.setAttribute("sex", "男");
%>
<%-- 使用jsp forward跳转为服务器跳转,地址栏的链接地址不发生变化 --%>
<jsp:forward page="code343.jsp"></jsp:forward>
</body>
</html>
举报

相关推荐

jsp代码实例第372课

jsp代码实例第301课

jsp代码实例第371课

jsp代码实例第300课

jsp代码实例第345课

jsp代码实例第343课

0 条评论