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
Explain jsessionid?
Why filter is used in servlet?
What is the difference between the http servlet and generic servlet?
What is the difference between forward () and sendredirect () functions in servlet? Explain
What is servlet and its types?
How can the session in servlet be destroyed?
What do you mean by interservlet communication?
When a servlet accepts a call from a client, it receives two objects. What are they?
How is a servlet implemented in code?
What is a deployment descriptor?
Explain mvc pattern.
How servlets are deployed in java?
What is servlet invoker?
What is the difference between sendredirect() and forward() in a servlet?
Define the lifecycle for executing a jsp page.