Answer Posted / sandeep m
The servlet which we want to be loaded automatically on
application deployment or during container startup we need
to configure <load-on-startup>int</load-on-startup> tag for
the servlet. above tag will be in <servlet> tag body.
<load-on-startup> is optional tag. If provided Servlets
will be loaded on application or container startup in the
order of the int value of tag.
If <load-on-startup> tag is not provided servlets are
loaded when first request is received after container
startup or first request after application deployment.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between CGI and Servlet?
When a servlet accepts a call from a client, it receives two objects. What are they?
What is servlet container?
What are the life cycle methods of the servlet?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Tell us something about servletconfig interface.
What are the important functions of filters?
Is java servlet still used?
What exactly is a servlet?
Explain jsessionid and when is it created?
What is the difference between the http servlet and generic servlet?
What is lazy loading and what is Generic Servlet Class?
Is servlet a server side scripting language?
How is a servlet implemented in code?
What is a web container and what is its responsibility?