<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
 PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
 "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>
  <tlib-version>0.9</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>company-name-tags</short-name>
  <description>
    A tag library that lets you print out the number of
    sessions currently in memory and/or a warning about
    the session count exceeding the limit. 
    
    The tlib-version number and the TLD filename are intended
    to suggest that this tag library is in development. In
    such a situation, you want to use the web.xml taglib
    element to define an alias for the TLD filename. You
    would want to do so even if you weren't trying
    to accommodate Tomcat 4.0, which only reads listener
    declarations from TLD files that are declared that way.
    
    From More Servlets and JavaServer Pages,
    http://www.moreservlets.com/.
  </description>

  <!-- Declare a validator to do translation-time checking
       of custom tag syntax. -->
  <validator>
    <validator-class>moreservlets.SAXValidator</validator-class>
  </validator>
  
  <!-- Register the listener that records the counts. -->
  <listener>
    <listener-class>
      moreservlets.listeners.ActiveSessionCounter
    </listener-class>
  </listener>
  
  <!-- Define a tag that prints out the session count. -->
  <tag>
    <name>sessionCount</name>
    <tag-class>
      moreservlets.tags.SessionCountTag
    </tag-class>
    <body-content>empty</body-content>
    <description>The number of active sessions.</description>
  </tag>      
  
  <!-- Define a tag that prints out an optional
       session-count warning. -->
  <tag>
    <name>sessionCountWarning</name>
    <tag-class>
      moreservlets.tags.SessionCountWarningTag
    </tag-class>
    <body-content>empty</body-content>
    <description>
      If the number of sessions exceeds the limit,
      this prints a warning. Otherwise, it does nothing.
    </description>
  </tag>
</taglib>
