aspose file tools*
The moose likes Servlets and the fly likes Listener API Support in Java Sun System Application Server 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Listener API Support in Java Sun System Application Server 7" Watch "Listener API Support in Java Sun System Application Server 7" New topic
Author

Listener API Support in Java Sun System Application Server 7

Subbarao Kondabala
Greenhorn

Joined: May 17, 2005
Posts: 27
Hi,
we are using Java Sun System Application Server 7 and I need to write a listener class in my web application.
I wrote a listener class by implementing ServletContextListener interface.
Now I wrote a lister tag in web.xml. But while deployin pareser is saying listener tag is not allowed.
Then I obeserved the DTD web-app_2_2.dtd , in this listener tag is not specified.
Now my question is can't we use listener API in java Sun System Application Server 7?


wating for reply?

Regards,
Subbarao


Thanks and Regards,
Subbarao Kondabala
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Context Listeners came about in Servlet Spec 2.3.
If your conatiner supports 2.3, you can use them.

Could it be that your web.xml file was carried over from an older version of the server? Check your container's documentation.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listener API Support in Java Sun System Application Server 7