[jboss-cvs] JBossAS SVN: r68502 - projects/cluster/varia/sessionstress/web.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 21 06:28:28 EST 2007


Author: bela at jboss.com
Date: 2007-12-21 06:28:28 -0500 (Fri, 21 Dec 2007)
New Revision: 68502

Modified:
   projects/cluster/varia/sessionstress/web/index.jsp
Log:
ns

Modified: projects/cluster/varia/sessionstress/web/index.jsp
===================================================================
--- projects/cluster/varia/sessionstress/web/index.jsp	2007-12-21 11:21:09 UTC (rev 68501)
+++ projects/cluster/varia/sessionstress/web/index.jsp	2007-12-21 11:28:28 UTC (rev 68502)
@@ -1,5 +1,10 @@
 <%@ page import="java.util.Enumeration"%>
+<%@ page import="java.net.InetAddress" %>
 
+<%!
+    String hostname="n/a", user_name="n/a";
+%>
+
 <%
     //    response.setHeader("Cache-Control", "no-cache");
 
@@ -16,6 +21,18 @@
     }
 %>
 
+<%
+    try {
+        hostname=InetAddress.getLocalHost().getHostName();
+    }
+    catch(Throwable t) {
+    }
+    try {
+        user_name=System.getProperty("user.name", "n/a");
+    }
+    catch(Throwable t) {}
+%>
+
 <html>
 
 <head>
@@ -42,7 +59,7 @@
     }
 %>
 
-<font size=5> Session information:<br/><br/>
+<font size=5> Session information (user=<%=user_name%>, host=<%=hostname%>):<br/><br/>
     ID: <%= session.getId()%><br/>
     Created: <%= new java.util.Date(session.getCreationTime())%><br/>
     Last accessed: <%= new java.util.Date(session.getLastAccessedTime())%><br/>




More information about the jboss-cvs-commits mailing list