<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src=""></script>
</head>
<body>
<%-- 取出设置在session中的对象XiaoZheng --%>
${XiaoZheng.name }
</body>
</html>
2.jsp:useBean,jsp:setProperty.jsp:getProperty:session范围
最新推荐文章于 2024-08-26 19:22:26 发布