I would like to implement a ServletContextListener, but I can't find an example of the tags I need to add to my web.xml file to register a class as a listener.
Can anyone point me in the direction of an example?
I just snooped the webapp 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd), and came up with this:
<listener> <listener-class>my.listsner.Class</listener-class> </listener>
Here's the element definition for the <webapp> element:
<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?,
error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*,
login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>
So, the "listener" elements come after any context-params, filters, and filter-mappings, but before any servlet defintions.
Hope that helps, -chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]