A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
order of loading in web.xml
S Sravs
Ranch Hand
Joined: Feb 25, 2008
Posts: 85
posted
May 19, 2008 14:00:00
0
1.listeners
2.servlets load on starup
3.then listener events
4. filters
is the order correct
Regards
Sravanthi
John Stone
Ranch Hand
Joined: May 04, 2007
Posts: 332
posted
May 19, 2008 14:12:00
0
from
servlet
spec 2.4
SRV.9.12 Web Application Deployment When a web application is deployed into a container, the following steps must be performed, in this order, before the web application begins processing client requests. � Instantiate an instance of each event listener identified by a <listener> element in the deployment descriptor. � For instantiated listener instances that implement ServletContextListener, call the contextInitialized() method. � Instantiate an instance of each filter identified by a <filter> element in the deployment descriptor and call each filter instance�s init() method. � Instantiate an instance of each servlet identified by a <servlet> element that includes a <load-on-startup> element in the order defined by the load-onstartup element values, and call each servlet instance�s init() method.
so in your case, it should be:
1, 3, 4, 2
S Sravs
Ranch Hand
Joined: Feb 25, 2008
Posts: 85
posted
May 19, 2008 15:02:00
0
thanks
actullay i was confused with servlet load-on-startup
I agree. Here's the link:
http://aspose.com/file-tools
subject: order of loading in web.xml
Similar Threads
how to prove that Hashtable is not ordered
retrieving values of multiple <input> tag with same name at server side
Style Guide question
For Virgins Only
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter