|
Tomcat example source code file (sessionsList.jsp)
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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" 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"); %> <head> <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 %> </head> <body> <h1>Sessions Administration for <%= path %> <p>Tips: <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")) %> <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 |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
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.