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


multiple instances for action class is it possible

Answers were Sorted based on User's Feedback



multiple instances for action class is it possible..

Answer / siriganesh

no ,Request processor creates only one instance of an Actin
class

Is This Answer Correct ?    11 Yes 0 No

multiple instances for action class is it possible..

Answer / m gangadhar

Hi,
Creating multiple instances for Actionservlet in struts1.x
is not possible but there is a possibility in struts2.x .
But as of nowStruts 1.X is not supports this concept.




Thanks
Gangadhar

Is This Answer Correct ?    7 Yes 0 No

multiple instances for action class is it possible..

Answer / kartheeswari

No, There is only one instance for an Action class in an
application.

Is This Answer Correct ?    6 Yes 0 No

multiple instances for action class is it possible..

Answer / yuga.reddi08

no,Action class is Thread Safe i.e request Processor
creates only one instance for one Action class and one
apllcation..

Is This Answer Correct ?    3 Yes 2 No

multiple instances for action class is it possible..

Answer / venkat

No having multiple references to action class means having
multiple controllers which violates the MVC design rules.

Is This Answer Correct ?    1 Yes 0 No

multiple instances for action class is it possible..

Answer / anila

it is not possible in struts1.v.It implements singletone
design pattren.tats why there is no chance to create
multiple objects.

in struts2.0 we can do that.

Is This Answer Correct ?    2 Yes 1 No

multiple instances for action class is it possible..

Answer / thirupathaiah

It is possible by making the action class as singletone but
the thing is it is not good aproach if we make it singleton
then while handling the multiple requests for each request
a seperate instance will be created, according to this
waste of memory and for each request action class life
cycle is defferent so do't go for making action as a
singleton

Is This Answer Correct ?    0 Yes 0 No

multiple instances for action class is it possible..

Answer / bishnu

No its not possible...becoz there is only one instance
which is the requestProcessor.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Struts Interview Questions

Name some useful annotations introduced in Struts2?

0 Answers  


what are tiles in struts?

3 Answers   Wipro,


What is the purpose of dispatcher result type?

0 Answers  


while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert

0 Answers   Banking,


How is token generated?

0 Answers  


collection framework hirarchy?

5 Answers  


What is interceptor in Struts2?

0 Answers  


What happens when Two users requests for same action class? How the threads are controlled?

4 Answers  


How to explain Software Bank Loan descriptions

0 Answers   Kekran Mekran, Wipro,


What is struts.devmode?

0 Answers  


What is xml based validation in struts2?

0 Answers  


Give the details of xml files used in validator framework?

0 Answers  


Categories