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


Please Help Members By Posting Answers For Below Questions

What is called a session?

621


What is the procedure for initializing a servlet?

543


What is cgi?

594


What are the important functions of filters?

595


Explain web application directory arrangement?

586






How are filters?

580


Explain the servlet context.

598


Explain the war file?

608


What is the web server used for running the Servlets?

579


What is SingleThreadModel interface?

672


Can you call a jsp from the servlet?

546


What is http servlet? Explain with the help of an example.

578


Difference between doget and dopost?

679


What is the need of servlet filters?

538


Explain their methods? Tell me their parameter names also have you used threads in servlet?

581