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

Is Struts Action class Thread Safe?

Answer Posted / shrikant kale

ApplicationContoller/RequestProcessor will create & use the
only instance of each Action class [hence: Singleton in
nature] .

Also the Action class has to handle the multiple request
(most of time simultaniously.) so it cant be Thread-Safe.


Hence we must not declare class instance variable in Action
class.If declared so then Action class state becomes non-
thread safe.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is apache struts used for?

973


How do you convert struts to springs?

1090


Are the struts tags xhtml compliant ?

979


What is the purpose of @element annotation annotation?

1138


What is the purpose of interceptors?

1050


What does modeldriven interceptor?

1142


Give the details of xml files used in validator framework?

1059


Explain architecture of struts2?

1154


What is the purpose of @validations annotation?

1091


What is the purpose of struts.xml in struct2?

1177


What are the 5 constants of action interface?

1060


Describe the two types of formbeans.

1040


How to override the default error message that can come during file uploading process?

1105


What is the purpose of constant tag in struts.xml?

996


Why do we need mapdispatchtoprops?

911