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

Listener Query

 
Muks Sam
Ranch Hand
Posts: 47
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

Until now I was only known of following code,

<web-app>
<listener-class>MyContextAttributeListener</listener-class>
</web-app>

but I got one more option which I have never seen, as below:

<web-app>
<display-name>My web application</display-name>
<listener>
<listener-class>MyContextAttributeListener</listener-class>
</listener>
</web-app>

Can somebody put some light on this Please? Is this what it could be??

Thanks

Muks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Until now I was only known of following code,

Where does it come from ? The listener-class a subtag of the listener tag, like in your second example. You can download the Servlets 2.4 specification from the SCWCD Links and check the "SRV.13.4 Deployment Descriptor Diagram" chapter.
 
Muks Sam
Ranch Hand
Posts: 47
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:

Where does it come from ? The listener-class a subtag of the listener tag, like in your second example. You can download the Servlets 2.4 specification from the SCWCD Links and check the "SRV.13.4 Deployment Descriptor Diagram" chapter.


Hi Chris,

Thanks again for the reply. Its the same mock test that showed me that with first choice it was wrong for them and with second choice it was right. I know that in DD it is not mandatory to have display-name while defining listener tag. But still according to them it was wrong. Anyways, Thanks again for link and reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic