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
How can you push data from an Applet to a Servlet?
What are the types of servlet?
What is the web server used for running the Servlets?
What mechanisms are used by a Servlet Container to maintain session information?
What is the workflow of a servlet?
Can we use threads in Servlets?
What is the directory structure of web application?
What is java servlet session?
Why do we need servlet filter?
Can you call a jsp from the servlet?
Which event is fired at the time of setting, getting or removing attribute from application scope?
How the typical servlet code look like ?
What are the differences between forward() method and sendredirect() methods?
What do you understand by mime type?
Describe the phases of servlet lifecycle?