| career | drupal | java | mac | mysql | perl | scala | uml | unix  
</tr> <tr> <th>Guessed Locale <td><%= JspHelper.guessDisplayLocaleFromSession(currentSession) %> </tr> <tr> <th>Guessed User <td><%= JspHelper.guessDisplayUserFromSession(currentSession) %> </tr> <tr> <th>Creation Time <td><%= JspHelper.getDisplayCreationTimeForSession(currentSession) %> </tr> <tr> <th>Last Accessed Time <td><%= JspHelper.getDisplayLastAccessedTimeForSession(currentSession) %> </tr> <tr> <th>Session Max Inactive Interval <td><%= JspHelper.secondsToTimeString(currentSession.getMaxInactiveInterval()) %> </tr> <tr> <th>Used Time <td><%= JspHelper.getDisplayUsedTimeForSession(currentSession) %> </tr> <tr> <th>Inactive Time <td><%= JspHelper.getDisplayInactiveTimeForSession(currentSession) %> </tr> <tr> <th>TTL <td><%= JspHelper.getDisplayTTLForSession(currentSession) %> </tr> </table> <p style="text-align: center;">

<div class="error"><%= JspHelper.escapeXml(request.getAttribute("error")) %> <div class="message"><%= JspHelper.escapeXml(request.getAttribute("message")) %> <table style="text-align: left;" border="1" cellpadding="2" cellspacing="2"> <% int nAttributes = 0; Enumeration attributeNamesEnumeration = currentHttpSession.getAttributeNames(); while (attributeNamesEnumeration.hasMoreElements()) { attributeNamesEnumeration.nextElement(); ++nAttributes; } %> <caption style="font-variant: small-caps;"><%= JspHelper.formatNumber(nAttributes) %> attributes <thead> <tr> <th>Remove Attribute <th>Attribute name <th>Attribute value </tr> </thead> <%--tfoot> <tr> <td colspan="3" style="text-align: center;"> TODO: set Max Inactive Interval on sessions </td> </tr> </tfoot--%> <tbody> <% attributeNamesEnumeration = currentHttpSession.getAttributeNames(); while (attributeNamesEnumeration.hasMoreElements()) { String attributeName = (String) attributeNamesEnumeration.nextElement(); %> <tr> <td align="center">
<td><%= JspHelper.escapeXml(attributeName) %> <td><% Object attributeValue = currentHttpSession.getAttribute(attributeName); %>"><%= JspHelper.escapeXml(attributeValue) %> </tr> <% } // end while %> </tbody> </table> <p style="text-align: center;">

<%--div style="display: none;"> <p> <a href="">Valid HTML 4.01! <a href="">Valid XHTML 1.0! <a href="">Valid XHTML 1.1! </p> </div--%> </body> </html>

Other Tomcat examples (source code examples)

Here is a short list of links related to this Tomcat sessionDetail.jsp source code file:

Tomcat example source code file (sessionDetail.jsp)

This example Tomcat source code file (sessionDetail.jsp) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Tomcat tags/keywords

apache, http, license, license, public, see, string, string, time, time, valid, xhtml, xhtml, you

The Tomcat sessionDetail.jsp source code

<?xml version="1.0" encoding="ISO-8859-1"?>
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<%@page session="false" contentType="text/html; charset=ISO-8859-1" %>
<%@page import="java.util.Enumeration" %>
<%@page import="javax.servlet.http.HttpSession" %>
<%@page import="org.apache.catalina.Session" %>
<%@page import="org.apache.catalina.manager.JspHelper" %>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<%--!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"

<html xmlns="" xml:lang="en">
<% String path = (String) request.getAttribute("path");
   Session currentSession = (Session)request.getAttribute("currentSession");
   HttpSession currentHttpSession = currentSession.getSession();
   String currentSessionId = currentSession.getId();
   String submitUrl = ((HttpServletRequest)pageContext.getRequest()).getRequestURL().toString();
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="pragma" content="no-cache"/>
	<meta http-equiv="cache-control" content="no-cache,must-revalidate"/>
	<meta http-equiv="expires" content="0"/>
	<meta http-equiv="content-language" content="en"/>
	<meta name="author" content="Cedrik LIME"/>
	<meta name="copyright" content="copyright 2005-2007 the Apache Software Foundation"/>
	<meta name="robots" content="noindex,nofollow,noarchive"/>
	<title>Sessions Administration: details for <%= currentSessionId %>
<h1>Details for Session <%= JspHelper.escapeXml(currentSessionId) %>

<table style="text-align: left;" border="0">
    <th>Session Id
    <td><%= currentSessionId %>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.