<%@ page import="java.util.Enumeration" 
      session="false" %>
<html>
  <head>
    <title>Context Snoop</title>
  </head>

  <body>
    <h1>Context Snoop</h1>


    <dl>
      <!-- one of (dd dt) -->
      <dt>application.getServletNames()</dt>
      <dd>
<ul>
<% 
	Enumeration e = application.getServletNames();
	while(e.hasMoreElements()) {
	    String s = (String) e.nextElement();
	    out.println("<li>"+s+"</li>");
        }
 %></ul></dd>
	    <dt>application.getServlet("/alph/org.gjt.jsp.test.GNUJSPTestServlet")</dt>
<% Servlet srv = application.getServlet("/alph/org.gjt.jsp.test.GNUJSPTestServlet"); %>
	    <dd><%= srv %> (info: <%= (srv != null)? srv.getServletInfo() : "" %>)</dd>
	    <dt>application.getServlet("org.gjt.jsp.test.GNUJSPTestServlet")</dt>
<% srv = application.getServlet("org.gjt.jsp.test.GNUJSPTestServlet"); %>
	    <dd><%= srv %> (info: <%= (srv != null)? srv.getServletInfo() : "" %>)</dd>
    </dl>
  </body>
</html>
