| career | drupal | java | mac | mysql | perl | scala | uml | unix  
is the same as --%> <tr> <th>Session Id <th>Guessed Locale <th>Guessed User name <th>Creation Time <th>Last Accessed Time <th>Used Time <th>Inactive Time <th>TTL </tr> </tfoot> <% } // end if %> <tbody> <% Iterator iter = activeSessions.iterator(); while (iter.hasNext()) { Session currentSession = (Session); String currentSessionId = currentSession.getId(); %> <tr> <td> <input type="checkbox" name="sessionIds" value="<%= currentSessionId %>" /><%= JspHelper.escapeXml(currentSessionId) %> </td> <td style="text-align: center;"><%= JspHelper.guessDisplayLocaleFromSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.guessDisplayUserFromSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.getDisplayCreationTimeForSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.getDisplayLastAccessedTimeForSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.getDisplayUsedTimeForSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.getDisplayInactiveTimeForSession(currentSession) %> <td style="text-align: center;"><%= JspHelper.getDisplayTTLForSession(currentSession) %> </tr> <% } // end while %> </tbody> </table> <p style="text-align: center;"> <input type="submit" name="invalidate" value="Invalidate selected Sessions" onclick="document.getElementById('sessionsFormAction').value='invalidateSessions'; return true;"/> </p> </fieldset> </form> <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 sessionsList.jsp source code file:

Tomcat example source code file (sessionsList.jsp)

This example Tomcat source code file (sessionsList.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, guessed, license, license, session, session, sessions, string, string, time, time, valid, xhtml, you

The Tomcat sessionsList.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.Collection" %>
<%@page import="java.util.Iterator" %>
<%@page import="org.apache.catalina.manager.JspHelper" %>
<%@page import="org.apache.catalina.Session" %>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="" xml:lang="en">
<% String path = (String) request.getAttribute("path");
   String submitUrl = ((HttpServletRequest)pageContext.getRequest()).getRequestURL().append("?path=").append(path).toString();
   Collection activeSessions = (Collection) request.getAttribute("activeSessions");
    <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 for <%= path %>
<h1>Sessions Administration for <%= path %>


<ul> <li>Click on a column to sort. <li>To view a session details and/or remove a session attributes, click on its id. </ul> <div class="error"><%= JspHelper.escapeXml(request.getAttribute("error")) %>
<div class="message"><%= JspHelper.escapeXml(request.getAttribute("message")) %> <form action="<%= submitUrl %>" method="post" id="sessionsForm"> <fieldset>Active HttpSessions informations <input type="hidden" name="action" id="sessionsFormAction" value="injectSessions"/> <input type="hidden" name="sort" id="sessionsFormSort" value="<%= (String) request.getAttribute("sort") %>"/> <% String order = (String) request.getAttribute("order"); if (order == null || "".equals(order)) { order = "ASC"; } %> <input type="hidden" name="order" id="sessionsFormSortOrder" value="<%= order %>"/> <input type="submit" name="refresh" id="refreshButton" value="Refresh Sessions list" onclick="document.getElementById('sessionsFormAction').value='refreshSessions'; return true;"/> <%= JspHelper.formatNumber(activeSessions.size()) %> active Sessions
<table border="1" cellpadding="2" cellspacing="2" width="100%"> <thead> <tr> <th>Session Id <th>Guessed Locale <th>Guessed User name <th>Creation Time <th>Last Accessed Time <th>Used Time <th>Inactive Time <th>TTL </tr> </thead> <% if (activeSessions.size() > 10) { %> <tfoot><%--
... 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.