How servlets can be automatically reloaded?

Answers were Sorted based on User's Feedback



How servlets can be automatically reloaded?..

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

How servlets can be automatically reloaded?..

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

How servlets can be automatically reloaded?..

Answer / niranjanravi

depends on the servlets reload properties.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Servlets Interview Questions

Name the servers that can be used to develope and deploy Servlets?

1 Answers  


What is servlet initializer?

0 Answers  


Which exception is thrown if servlet is not initialized properly?

1 Answers  


how the server will know its the same jsp page?

3 Answers   HCL,


What is servlet and how it works?

0 Answers  






What is the difference between servlet config and servlet context.

19 Answers   TCS, Tech Mahindra, Vertex,


How can we invoke another servlet in a different application?

0 Answers  


What is the difference in between the httpservlet and generic servlet?

0 Answers  


what are binding listners?

1 Answers  


what is servlet and what you get when we use servlets?

7 Answers   GGK Tech, Satyam,


What’s the difference between sendredirect and forward methods

0 Answers  


What is the difference between portlet and servlet?

0 Answers  


Categories