File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about lister/listner-class

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Last quistion before the exam tommorow 9:00 CET !

I have seen many exeamples off



But if you have 2 or more listners declared

can you declare it this way:



Or dou yoy have to declare it this way:





Frank
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The latter one.
 
Dave Wingate
Ranch Hand
Posts: 262
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think that only the latter wold be valid.

The dtd for web.xml describes the listener element as:


<!ELEMENT listener (listener-class)>



Notice that "listener-class" is not followed by an asterisk or a plus sign, so I think you'd be required to list exactly one listener-class element per listener tag.
 
Frank Jacobsen
Ranch Hand
Posts: 358
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

Frank
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic