when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?
Answer Posted / durga ganesh reddy
Just by receiving a request, the web container creates
ServletContext object(so it is called asapplication
object).After creating servlet object then ServletConfig
object will be created.For each servlet instance there will
be a ServletConfig istance is available separtely.
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
Write all the phases defined in servlet life cycle?
Write a hello world program using servlets.
Explain in brief the directory structure of a web application?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
Explain the difference between servlet and cgi?
What are some advantages of storing session state in cookies?
What are the difference between RMI and Servlets?
What is Client-Server Computing?
What is the difference between encodeRedirectUrl and encodeURL?
What is httpservlet and how it is different from genericservlet?
How to make sure a servlet is loaded at the application startup?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Why do we need servlet filter?
How can the session in servlet can be destroyed?
List out the difference between ServletConfig and ServletContext?