code032.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>显示结果</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String name = session.getAttribute("name").toString();
String address = request.getParameter("address");
%>
<table border="1">
<caption>显示结果</caption>
<tr>
<td>你的名字:</td>
<td><%= name %></td>
</tr>
<tr>
<td>你喜欢去的地方:</td>
<td><%= address %></td>
</tr>
</table>
</body>
</html>