Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Listener Declaration

 
Amit Tayal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
Please let me know whethere we can configure all the listener in single listener tag like
<listener>
<listener-class>com.MyServletContextListener</listener.class>
<listener-class>com.MyServletContextAttributeListener</listener.class>
</listener>


or we have to define them separately like

<listener>
<listener-class>com.MyServletContextListener</listener.class>
</listener>

<listener>
<listener-class>com.MyServletContextAttributeListener</listener.class>
</listener>



regards
Amit
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to define them separately.
Refer to the specification's diagram.
 
Amit Tayal
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Satou.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!