How servlets can be automatically reloaded?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / bibek
if in your deployment descriptor or <web.xml> file you have
set <load-on-startup>1</load-on-startup> then it will be
auto matically loaded
| Is This Answer Correct ? | 2 Yes | 1 No |
depends on the servlets reload properties.
| Is This Answer Correct ? | 0 Yes | 4 No |
What is meant by servlet? What are the parameters of the service method?
What is difference between jsp and servlet?
Is it possible to have a constructor inside the servlet?
can i modify the data which are generated by the servlet
how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply..
What is done after deploying a war file and before client gives a request
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
What are the new features added to servlet 2.5?
List some life cycle methods of a servlet.
What is preinitialization of a servlet?
How to pass JavaBeans data to JSP using Servlets?
If a servlet is not properly initialized, what exception may be thrown?