What is servlet preinitialization?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between long.class and long.type?

560


What is the relationship between the canvas class and the graphics class?

538


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1554


Which containers use a border layout as their default layout?

606


Do we need to override service() method

1139






Why a component architecture for the java platform?

570


Name the eight primitive java types.

593


Do I have to use jsps with my application?

579


What is difference between object state and behavior?

578


what is a portable component?

1460


How would you reatach detached objects to a session when the same object has already been loaded into the session?

677


What are the pros and cons of detached objects?

545


What is the difference between a menuitem and a checkboxmenuitem?

580


What is the difference between system.out ,system.err and system.in?

594


Difference between swing and awt?

597