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

When jsessionid is created?

1 Answers  


If we disable cookies in our web page, what will happen?

6 Answers   Zensar,


Can we override destroy method in servlet?

1 Answers  


What is called a session?

1 Answers  


Is servlet synchronized?

1 Answers  


1.HttpSession 2.Hidden fields 3.URL Rewriting these primitive type of Session maintainance. What is the other type of process that could help to maintain the Session? pls Explain the process if u know?

5 Answers   OnMobile,


What are the various ways of session supervision in servlets?

1 Answers  


What is java servlet?

1 Answers  


Can we override the ActionServlet?

3 Answers   ArisGlobal, HCL, PPF,


How do we translate jsp?

1 Answers  


What is Servlet API used for connecting database?

1 Answers  


What is the difference between context parameter and context attribute?

1 Answers  


Categories