This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listener API Support in Java Sun System Application Server 7

 
Subbarao Kondabala
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic