root/lex/trunk/jsp/attributes.jsp

Revision 26, 364 bytes (checked in by chris, 5 years ago)

Imported sources

Line 
1 <%@ page import="java.util.Enumeration" %>
2 <html><body>
3 <h1>Session Attributes</h1>
4 <table>
5 <%
6         Enumeration e = session.getAttributeNames();
7         while (e.hasMoreElements()) {
8                 String name = (String)(e.nextElement());
9                 Object value = session.getAttribute(name);
10                 %>
11                 <tr>
12                         <td><%= name  %></td>
13                         <td><%= value %></td>
14                 </tr>
15                 <%
16         }
17 %>
18 </table>
19 </body></html>
Note: See TracBrowser for help on using the browser.