Created
April 3, 2020 08:24
-
-
Save wsuo/1d12cebcabf54bcdee0016afcb44934d to your computer and use it in GitHub Desktop.
直接运行即可
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- | |
Created by IntelliJ IDEA. | |
User: wsuo | |
Date: 2020/3/29 0029 | |
Time: 17:48 | |
To change this template use File | Settings | File Templates. | |
--%> | |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<html> | |
<head> | |
<title>Hello</title> | |
</head> | |
<body> | |
<%session.setAttribute("user", "王硕");%> | |
<table border="1"> | |
<tr> | |
<td>你的会话ID:</td> | |
<td><%=session.getId()%></td> | |
</tr> | |
<tr> | |
<td>session对象中的user值:</td> | |
<td><%=session.getAttribute("user")%></td> | |
</tr> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment