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 the procedure of invoking different servlet in a different application?

777


What do you mean by servlet context?

807


What are the ways to handle multi-threading in servlets?

844


What is the servlet?

841


What do you mean by the servlet chaining?

794


What is webservlet?

753


Given the request path below, which are context path, servlet path and path info?

774


What is the process to implement doget and dopost methods?

744


Can you refresh servlet in client and server-side automatically?

817


What if you need to span your transaction across multiple servlet invocations?

813


What are Servlets?

842


Explain the features are in servlet 3?

826


Can you create a deadlock condition on a servlet?

799


What is pure servlet?

931


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2736