File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes listener declared in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "listener declared in DD" Watch "listener declared in DD" New topic
Author

listener declared in DD

A. Aka
Ranch Hand

Joined: Sep 08, 2012
Posts: 44
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,
Abhilash Sharma
Ranch Hand

Joined: Dec 05, 2010
Posts: 67

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


OCPJP 6 | OCEJWCD 6
A. Aka
Ranch Hand

Joined: Sep 08, 2012
Posts: 44
thanks
Sanjay Singh
Ranch Hand

Joined: Mar 02, 2006
Posts: 37

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.


Regards, Sanjay Singh
SCJP-1.6, OCEWCD 6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: listener declared in DD
 
Similar Threads
HFSJ 2nd Edition Mock exam doubt
HFJS (V2) Final Mock Question 6 is wrong?
Listener question
which listener not declared in DD ?
Registration of Session Listeners