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
Why servlet is mostly used?
What are the common methods that are included in the http servlet class?
How the servlet is loaded?
Why doesn’t a servlet include main()?
What is string tokenizer?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
How the typical servlet code look like ?
Can you refresh servlet in client and server-side automatically?
What are the supporting protocol by HttpServlet ?
How do we call one servlet from another servlet?
What is the process to implement doget and dopost methods?
Write a program to show the functionality of servlets.
How to create war file?
What are the advantages of servlets over traditional cgi?
What is the major difference between context parameter and context attribute?