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?

Answers were Sorted based on User's Feedback



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

Answer / b.mallikarjun reddy

When ever server is starting, It is possible to tell the
container when to load the servlet on the startup. You can
load any number of servlets on startup. load-on-startup>
subelement indicates the order in which servlet should be
loaded. However positive values are loaded first. If the
value is Negative or unspecified value then the container
load the servlet at the runtime during the startup.

Is This Answer Correct ?    10 Yes 1 No

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

Answer / sitaram

<load-on-startup> is used in web.xml.who is using
<load-on-startup> tag in the struts- config.xml. please
confirm.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / praveen

specify the order in which we want to initialize various
Servlets.
Like first initialize Servlet1 then Servlet2 and so on.
This is accomplished by specifying a numeric value for the
<load-on-startup> tag.
<load-on-startup> tag specifies that the servlet should be
loaded
automatically when the web application is started.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

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

Answer / rakeshpattnaik

if <load-on-startup> is unspecified then it takes default
value as 0 during run time.
For -ve values ::
Cannot find ActionMappings or ActionFormBeans collection

the above error comes.So always:
Default-0
Unspecified-0
Accepted-+ve vales on priority basis
Not Accepted- -Ve values

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Struts Interview Questions

What are Struts properties?

2 Answers   VI eTrans,


What are the advantages of spring mvc over struts mvc?

0 Answers  


How Struts will follow the MVC?

6 Answers   HCL,


What is the use of token interceptor in Struts2?

0 Answers  


Why actionservlet is singleton in struts?

0 Answers  


What are the components of struts framework?

0 Answers  


How the flow of various requests happens in struts application?

0 Answers  


What is the purpose of @conversionerrorfieldvalidator annotation?

0 Answers  


In web.xml file instead of *.do can i write *.ibm, Specify with example

13 Answers   IBM,


What is the purpose of dispatcher result type?

0 Answers  


how many methods are there in RequestPrccesor class?

2 Answers   Infosys,


What is the purpose of @conversion annotation annotation?

0 Answers  


Categories