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 kind of mvc is struts 2?

960


Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?

870


What is request processor and how does it relates to action mapping?

976


Why are frameworks used?

943


What is token used for?

875


Difference between html tags and struts specific html tags

858


What is the purpose of execute method of action class?

931


How can we group related actions in one group in Struts?

917


Are actions thread safe?

920


What is the purpose of @conversion annotation annotation?

1190


Can explain about the validations and in your project where did u used the validations?

7478


When it’s useful to use IncludeAction?

962


What is the difference between empty default namespace and root namespace?

1053


What is difference between struts1 and struts2?

874


What does i18n interceptor?

987