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
Who is responsible for writing a constructor?
How can you use a servlet to generate a plain text instead of html?
Explain the jar and war files in servlet?
What is a servlet engine?
Explain the features are in servlet 3?
Explain the different ways for servlet authentication?
Why do we use sendredirect() method?
Whats the advantages using servlets over using CGI?
What are the new features added to servlet 2.5?
Name the packages that work with servlet?
What are the steps involved in placing a servlet within a package?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
Explain servlet life cycle?
What are the different methods involved in the process of session management in servlets?
What is a java servlet?