• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confused abt ServletContext listeners

 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
in Sun's tuto and in listeners tuto the attribute listener for
ServletContext is mentioned as
ServletContextAttributesListener
but in documentation it is specified as
ServletContextAttributeListener
so a matter of s
Attributes or Attribute??
please let me know because i havent tried it..
Bhupendra
 
anders eriksson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
the name ServletContextAttributesListener was in specification draft, but for final 2.3 release it was changed to ServletContextAttributeListener.
/Anders
 
Gagan Indus
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahajan
good point
And guess what ! both of these work !
ServletContextAttributesListener
and
ServletContextAttributeListener
as well !!
Not sure what could be the purpose behind that.
May be some sort of backward compatibilty

anyone?
------------------
Gagan (/^_^\) SCJP2
Die-hard JavaMonk -- little Java a day , keeps u going .
 
Gagan Indus
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh soz , i missed Anders post !
Thankx Anders ! its clear now
 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So from the exam point of view
we should consider ServletContextAttributeListener
it's final??
Bhupendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic