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 the directory structure of a war file?
what is the difference between do get/dopost
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What are the different ways we can maintain state between requests?
How will two or three servlets interact or communicate with each other?
Why the container loads server at the application startup and how?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What are the type of protocols used in httpservlet?
Difference between java beans & servlets?
Can you use javascript in servlets?
what is meant by servlet to servlet communication?
What are the Internal servlets maintained by the web server?