Answer Posted / 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 |
Post New Answer View All Answers
What is preinitialization of a servlet?
What are session variable in servlets?
What are life cycle methods of a servlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What is a web application and what is it’s directory structure?
How do you define a servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What exception should be thrown when servlet is not properly initialized?
Which exception is thrown if the servlet is not initialized properly?
How can the referrer and the target urls be used in servlet?
What do you mean by chaining in servlet?
List out difference between a JavaBean from a Servlet?
What is the use of attribute in servlets?
Can we override servlet service method?
What's the difference between authentication and authorization?