tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <>
Subject RE: newbie:what is listener-class
Date Sun, 14 Jul 2002 11:48:43 GMT
According to the Servlet 2.3 spec:

SRV.10.2 Event Listeners

    Application event listeners are classes that implement one or more of
the servlet
event listener interfaces. They are instantiated and registered in the web
container at
the time of the deployment of the web application. They are provided by the
developer in the WAR.
    Servlet event listeners support event notifications for state changes in
ServletContext and HttpSession objects. Servlet context listeners are used
manage resources or state held at a VM level for the application. HTTP
listeners are used to manage state or resources associated with a series of
made into a web application from the same client or user.
There may be multiple listener classes listening to each event type, and the
developer may specify the order in which the container invokes the listener
for each event type.

I'm not sure which web.xml you are refering, but more than likely it is a
which is invoked when the servlet container starts up. It can be used as a
class to initialize any classes or obtain any resources need by your web



> -----Original Message-----
> From: wu qihua []
> Sent: Sunday, July 14, 2002 5:59 AM
> To:
> Subject: newbie:what is listener-class
> in web.xml,there is a nod:
> - <listener>
> <listener-class>org.apache.taglibs.standard.examples.startup.Init<
> /listener-class>
>   </listener>
> and what is their real meaning.
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> --
> To unsubscribe, e-mail:
> <>
> For additional commands, e-mail:
> <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message