What is servlet preinitialization?

Answers were Sorted based on User's Feedback



What is servlet preinitialization?..

Answer / guest

A servlet is lazily loaded in servlet container of web or
application server. This means, a servlet is not instantiated
or initialized in servlet container as long as it has not been
requested for the first time. A servlet can be preloaded and
preinitialized with the help of <load-on-startup> of web.xml
(deployment descriptor) file.The preloading of a servlet
before any user request is called servlet preinitialization.

Is This Answer Correct ?    16 Yes 1 No

What is servlet preinitialization?..

Answer / surajkumar.java

A servlet is lazily loaded in servlet container of web or
application server. This means, a servlet is not instantiated
or initialized in servlet container as long as it has not been
requested for the first time. A servlet can be preloaded and
preinitialized with the help of <load-on-startup> of web.xml
(deployment descriptor) file.The preloading of a servlet
before any user request is called servlet preinitialization.

Is This Answer Correct ?    8 Yes 0 No

What is servlet preinitialization?..

Answer / sreekanth madamanchi

Servlet can loaded in servlet container of web or
application server at the time of first request sent to
that servlet.
If we want to preinitialized the servlet by using <load-on-
startup> tag(Aritten in web.xml). If we use that tag,
servlet is intialized at the time of server start.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


What is the use of Class.forName

20 Answers   HCL,


What is the purpose of the notify() method?

0 Answers  


What is permgen or permanent generation?

0 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,






How would you create a button with rounded edges?

0 Answers  


Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

0 Answers  


if i know the lenght of collection in hand, should I use Array or Arraylist? justify

1 Answers   iTrust,


What is the purpose of the wait() method?

0 Answers  


what are the activation groupworks?

0 Answers  


can we write implementation for a method with in another method?

3 Answers   Cap Gemini,


Categories