Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Order of Loading Servlets, Context Listeners, Tag classes and Filters

 
Chithra Salam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This Q may not be there in exam objectives,but was eager to know how container actually loads the instance.

What's the order in which below objects are loaded.

1)Context Listener
2)ServletContext
3)Filter
4)Servlet
5)Tag class
6)ServletConfig.

I have written the objects on the order which I feel that container will load.


Please provide the inputs.

Thanks,
Chithra Salam
SCJP-85%,SCWCD-in progress.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess(not sure)

1)ServletContext
2)Context Listener
3)Filter
4)Servlet
5)ServletConfig
6)Tag class

i arrange the order . correct me if i am wrong
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!