tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <rtay...@newatlanta.com>
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
the
ServletContext and HttpSession objects. Servlet context listeners are used
to
manage resources or state held at a VM level for the application. HTTP
session
listeners are used to manage state or resources associated with a series of
requests
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
beans
for each event type.


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


HTH,

robert

> -----Original Message-----
> From: wu qihua [mailto:wqh_flp@hotmail.com]
> Sent: Sunday, July 14, 2002 5:59 AM
> To: taglibs-user@jakarta.apache.org
> 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:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> To unsubscribe, e-mail:
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message