<body>
<p>${sessionScope.a }用户登录成功</p>
<table border="1">
<%int q = 500; %>
<%for(int i = 0;i<=3;i++){%>
<tr>
<th>${sessionScope.a }</th>
<th>${sessionScope.b }</th>
<th><%=q %></th><br>
</tr>
<%} %>
<table>
</body>
其中,a,b为Session中的键值
<%=q %>为jsp页面下变量的直接取值语法
jsp下的代码使用元素<% %>