• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Listener Query

 
Ranch Hand
Posts: 47
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic