select the correct sequence of action that a serverlet container perform before servicing any request.
1 instantiate listener defined in deployment descripter 2 initialize filter defined in dd 3 initialize servlet that are set to load on start up 4 call the context initialize method on listener implementing servlet context listener interface
posted 10 years ago
The order is listener(instantiate/initialize), filter and then servlet.
farihah's question is about initialization order at the container's startup. You declare servlets, listeners, filters, etc.. in web.xml. The Servlet Specification makes it clear in which order they are initialized.