July 28, 2008 at 4:56 PM
Generally, the servlet container will load the servlet class and create servlet object when it receives the first request call for that particular servlet.
But, by using the load-on-startup in web.xml for a particular servlet will make the servlet container to load and create the servlet object when the container is starting. This will reduce the time gap between request and response. And along with that we can use this facility to get some kind of resources, which are useful in the application, immediately after container got started.