作者:天
以下是引用片段:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
</head>
<body>
<%
Enumeration e=session.getAttributeNames();
String temp;
for (;e.hasMoreElements();){
temp=(String)e.nextElement();
out.print(temp+"="+(String)session.getAttribute(temp)+"<br>");
}
%>
</body>
</html>