Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How servlets can be automatically reloaded?

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


Please Help Members By Posting Answers For Below Questions

Explain jsessionid?

1038


Why filter is used in servlet?

995


What is the difference between the http servlet and generic servlet?

1143


What is the difference between forward () and sendredirect () functions in servlet? Explain

1033


What is servlet and its types?

1058


How can the session in servlet be destroyed?

1159


What do you mean by interservlet communication?

1071


When a servlet accepts a call from a client, it receives two objects. What are they?

1244


How is a servlet implemented in code?

1081


What is a deployment descriptor?

1106


Explain mvc pattern.

1023


How servlets are deployed in java?

1020


What is servlet invoker?

1040


What is the difference between sendredirect() and forward() in a servlet?

1019


Define the lifecycle for executing a jsp page.

1082