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

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

Also, it is not Thread-Safe as it suppose to serve the
multiple request.

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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is spring hibernate and struts in java?

911


How the exceptions are handled in struts?

998


What are the classes used in struts?

1090


How an actionform bean is created?

970


What is the purpose of @conversionerrorfieldvalidator annotation?

1179


What are the core classes of the struts framework?

938


How you will enable front-end validation based on the xml in validation.xml?

1084


Why are struts tightly coupled?

979


What are the custom tags?

905


What is the difference between plain-validator and field-validator?

956


What is the purpose of global-forwards tag in struct-config.xml?

963


How do u provide security to ur project?(Banking domain project)

4876


How to handle exceptions in structs?

1110


What is container struts2?

991


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

957