One of my
servlets implements HttpSessionListener, and I configured that in the deployment descripter using <listener> element. But the tool (Jbuilder) I used is showing an error message "Element type 'listener' must be declared".
I placed <listener> element before the servlets declared (that is the
J2EE specification) and just after the <desplay-name> element. My configuration looks like the following:
<listener>
<listener-class>com.space.chat.ChatDispatch</listener-class>
</listener>
I use servlet version 2.2.
Please anyone help me. Thanks very much in advance.