File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes regarding ServletContextListner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "regarding ServletContextListner" Watch "regarding ServletContextListner" New topic

regarding ServletContextListner

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi ranchers...
i am preparing for SCWCD using HFSJ, when reading and testing ServletContextListner,and when starting the Tomcat,there are two calls to contextInitialized method,why?
Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264

Pls post your web.xml and servlet,listner code

when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi man,
i use the example from HFSJ(page:171--->174) as is?
Yi Yuan

Joined: Jul 03, 2006
Posts: 22
Really ?
But I haven't tried it ever.

SCJP 1.4 - 95% Passed<br />SCWCD 1.4 - 89% Passed
Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
BUT i don't know why???
magesh sripathy

Joined: Apr 06, 2006
Posts: 27
you meant to say that two object of type dog has been created......
i dont think so........when I tried the example i got the correct output....can you please specify what you have in the context intialized method and what output you are getting......

I agree. Here's the link:
subject: regarding ServletContextListner
Similar Threads
cannot find symbol : ServletContextListner
Multiple ServletContextListner event handling order
Doubt of ServletContextListner
ServletContextListner not compiling