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 preinitialization of a servlet?
What is dispatcher servlet?
How do servlets work?
How a servlet is unloaded?
What are session variable in servlets?
What is the directory structure of web application?
What are the phases of the servlet life cycle?
How will two or three servlets interact or communicate with each other?
What is the web server used for running the Servlets?
What is Client-Server Computing?
Which are the different ways you can communicate between servlets?
What are different ways for servlet authentication?
Can we use the constructor, instead of init(), to initialize servlet?
Explain the war file?
Can a jsp be called using a servlet?