Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

listener declared in DD

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

my question is which listener should be declared in DD (between those : ServletContextAttributeListener, HttpSessionListener, ServletRequestListener, ServletRequestAttributeListener, HttpBindingListener, HttpSessionAttributeListener, ServletContextListener, HttpSessionActivationListener)

My second question is if I declare a listener in DD which should not be, do I get an Exception ?

regards,
 
Ranch Hand
Posts: 67
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

A. Aka wrote:hi,

my question is which listener should be declared in DD (between those : ServletContextAttributeListener, HttpSessionListener, ServletRequestListener, ServletRequestAttributeListener, HttpBindingListener, HttpSessionAttributeListener, ServletContextListener, HttpSessionActivationListener)

My second question is if I declare a listener in DD which should not be, do I get an Exception ?

regards,



See this Configuring Listeners
 
A. Aka
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Ranch Hand
Posts: 37
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My second question is if I declare a listener in DD which should not be, do I get an Exception ?



you will not get any error, that's what I can see in tomcat 7.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
ScroogeXHTML 9.0 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/731949/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic