Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listeners hierarchy?

 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are 3 types of listeners in servlets:

context
session, and
request

as per javax.servlet API, why is it that context and session listener interfaces extend java.util.EventListener but request listeners do not?
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checkout the javax.servlet.ServletRequestListener docs. It shows that it extends the java.util.EventListener interface (and so does ServletRequestAttributeListener)...
 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. I have javadoc for servlets and perhaps it is a mistake there. thanks.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right to be confused. The J2EE1.4 version does not extend it. (javax.servlet.ServletRequestListener)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic