Is it possible to create mulitple instance of one Action
Class in struts?

Answers were Sorted based on User's Feedback



Is it possible to create mulitple instance of one Action Class in struts?..

Answer / ramanjaneyulu

No. It follows the sigleton design pattern. so it create a
only one instance of the Action class

Is This Answer Correct ?    17 Yes 3 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / srinivas reddy

Please guys don't give the answers with out knowing or
guessing the answer cause it makes no sense and it is
useless to every one and it misguides everyone

Is This Answer Correct ?    10 Yes 0 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / boopathi selvaraj

There are some two answers posted in the portal..Can i have
any expert to solve and give , me right answer for the same..

Is This Answer Correct ?    6 Yes 0 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / sitaram

Only one instance of action class is created per
application, as we know for each request container will
create separate thread hence for 100 request 100 theads will
be creates and that 100 request can handle
concurrently...(which is executing execute() method of
action class's single instance) i.e. you can say class
variable of action class is not at all thead safe.

Is This Answer Correct ?    4 Yes 1 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / boopathi

Yes..
It is possible to create n no of instances of action
class...
We just have to mention it in the struts-config.xml
..i.e. we need to provide different action path (in action
mapping) for the instances.

Is This Answer Correct ?    5 Yes 3 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / srinivas

Answer #2 is correct.

Is This Answer Correct ?    1 Yes 1 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / vijay sharma

Yes, It is possible to create mulitple instance of one
Action Class in struts.

Is This Answer Correct ?    2 Yes 2 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / venkat

yes it is possible to create n number action classes But
only one controller.

Is This Answer Correct ?    2 Yes 3 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / raj

No we can create multiple instance for Action class,because
it signifies as singleton class property.

Is This Answer Correct ?    2 Yes 5 No

Is it possible to create mulitple instance of one Action Class in struts?..

Answer / sandeep

Yes..it is possible to create n no of instances of action
class...just we have to mention it in the struts-config.xml
..i.e. we need to provide different action path (in action
mapping) for the instances.

Is This Answer Correct ?    4 Yes 9 No

Post New Answer

More Struts Interview Questions

Hai all.What is the use of <logic:iterate>tag in struts application.

3 Answers   CA, TCS,


Difference between struts1.2 and struts2.0?

3 Answers   Bank Of America, HCL, Value Labs,


What is the front controller in struts2?

0 Answers  


What are the steps involved in creating a strut application?

0 Answers  


Lists the bundled validators in struts?

0 Answers  






Why actionservlet is singleton in struts?

0 Answers  


What is struts framework in java?

0 Answers  


What is value stack?

0 Answers  


How we can install struts?

0 Answers  


What are the steps of struts installation?

0 Answers  


What is the purpose of struts.properties in struct2?

0 Answers  


Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash

4 Answers  


Categories