blob: c21109dcc7e6675137ca651deb9e385d542ce2f3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Listeners" />
<meta content="listeners, overview" name="DC.subject" />
<meta content="listeners, overview" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/cwservbn.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/cwfiltbn.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/ccwtover.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/twsrvwiz.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/twlstwiz.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/twfltwiz.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="cwlistbn" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Listeners</title>
</head>
<body id="cwlistbn"><a name="cwlistbn"><!-- --></a>
<h1 class="topictitle1">Listeners</h1>
<div>
<p>Listeners are new feature in the <cite>Sun
Microsystems Java™ Servlet 2.3 Specification</cite>. A listener can be used to monitor and
react to events in a servlet's life-cycle by defining methods that get
invoked when life-cycle events occur. Support for application level
events is defined in the Java Servlet Specification 2.3.</p>
<div class="p">Application event listeners are classes that
implement one or more of the servlet event listener interfaces. Servlet
event listeners support notification for state changes in the
<strong>ServletContext</strong> and <strong>HttpSession</strong> objects, specifically:
<ul>
<li><strong>Servlet context listeners</strong> are used to manage resources or state held at a VM
level for the application.</li>
<li><strong>HTTP session listeners</strong> are used to manage state or resources associated with a
series of requests made in a Web application from the same client or
user.</li>
</ul>
</div>
<p>For more information about listeners, refer to the <cite>Sun Microsystems Java Servlet
2.3 Specification</cite> at <samp class="codeph">java.sun.com/products/servlet/download.html</samp>.</p>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cwservbn.html" title="">Servlets</a></div>
<div><a href="../topics/cwfiltbn.html" title="">Listeners</a></div>
<div><a href="../topics/ccwtover.html" title="">Web application overview</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/twsrvwiz.html">Creating Servlets</a></div>
<div><a href="../topics/twlstwiz.html">Creating Listeners</a></div>
<div><a href="../topics/twfltwiz.html">Creating Filters</a></div>
</div>
</div>
</body>
</html>