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...

what is the purpose of load_on_startup entry in struts-
config.xml?

Answer Posted / dinesh/bangalore/india

Details about load on startup (load-on-startup tag) in
Servlet:
Used to decide whether servlet will be " lazily " or "
eagerly " loaded
Specified in web.xml file

If the value is not specified or is a Number < 0 then it
means " lazy loading "

What " lazy loading " means is that servlet is NOT loaded
by container on startup

Servlet in this case is loaded on the first client request -
so the first client can experience poor performance

" Eager " loading means that the servlet is initialised on
container startup

If there are two servelts A & B with values 0 & 1 than it
means that Servlet A ( having value = 0 ) will be loaded
first

So if there are more than one servlet this element
specifies the order of loading - lower integer values (
including zero ) are loaded first

If you specify this element but do not provide the value -
even then the servlet will be the first servlet that gets
loaded

To ensure that servlet follows " lazy loading " - do not
provide this entry at all in web.xml file OR provide a
negative number.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default location of result pages and how can we change it?

957


What are apache struts?

858


How is declarative handling of exceptions done in struts ?

875


What is interceptor struts2?

932


How nested beans can be used in Struts applications?

956


What is apache struts vulnerability?

879


Explain the components of struts?

907


What are best practices to follow while developing Struts2 application?

968


Give an alternative way to protect jsp’s with not much features from direct access.

944


What is struts actionmapping?

890


When should we use SwtichAction?

1007


Can explain about the validations and in your project where did u used the validations?

7481


What is the purpose of @results?

949


What is the use of jsonvalidation in struts?

927


What is the different actions available in struts?

955