• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Couple of Names of The Listener Interfaces

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of names in the Servlet 2.3 Specification appear to be confusing:
1. It is javax.servlet.ServletContextAttributesListener in p. 70 where "Attributes" is plural. However, it is ServletContextAttributeListener in both p. 120 and p. 144. The "Attribute" is singlar.
2. It is javax.servlet.http.HttpSessionAttributesListener in p. 70 where "Attributes" is plural. However, it is
HttpSessionAttributeListener in both p. 178 and p. 226. The "Attribute" is singlar.
Which ones are correct? The ones with or without "s"?
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd tend to believe the Javadoc as this is generated automatically from the code. I've also noticed a number of other spelling mistakes in the specification docs ...
So that makes it singular in both cases: ServletContextAttributeListener
and HttpSessionAttributeListener
 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noticed this particular error myself. It should be singular (Attribute). Sun needs to update these docs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic