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 java servlet?
what is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }
Are Servlets by default thread safe or not? thanks in advance regards Sudhakar
What do you mean by singlethreadmodel interface?
How can we achieve transport layer security for our web application?
What are its drawbacks of cgi?
In servlets, Why do we need both GET and POST method implementations?
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
How do cookies work in servlets?
Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i used servlet for controller logic and business logic . is it correct ?
Explain is servlet mapping?
How are filters?