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 do you mean by dynaactionform?

961


List the important attribute and elements of action mapping under struts.

973


How can we display all validation errors to user on jsp page?

1074


What is the purpose of struct-config.xml in struct2?

965


What are the some useful annotations introduced in struts2?

958


Explain the components of struts?

951


Lists the bundled validators in struts?

1003


How can forward action be used to restrict a strut application to mvc?

962


What are Struts2 core components?

980


What is the purpose of redirect result type?

1006


How to get data from the velocity page in a action class?

944


What is the purpose of '@keyproperty'?

1016


What kind of mvc is struts 2?

1009


Who makes the struts?

926


What configuration changes are required to use resource files in Struts?

1012