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 |
Which method is called when reference variable is passed in system.net?
What is servlet lazy loading?
What are the drawbacks of cgi?
hi.... i have problem in running of servlet. i am using Tomcat server in my pc.. The problem is when i am click on strat it will display like below FAIL - Application at context path /first could not be started.. How i can slove the problem.. help plz
How to rectify errors in java servlet while compilation?
What is the main purpose of java servlets?
Which java framework is most popular?
What is the use of send redirect () method?
What is cookie? Why is cookie used?
What do you mean by default initialization in java servlet?
what are the disadvantages of cookies?
can u give some realtime example in ploymorphism? and inheritance?