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 struts in java with example?

1000


Can we use struts and spring together?

1041


What are the custom tags?

957


In which order struts framework searches for a message bundle?

984


What are the features of struts 2?

1122


Why we use struts in java?

976


What are the struts2 error message keys that can come during file uploading process?

1105


Why is action servlet a singleton in struts?

1137


What do you mean by actionservlet?

1037


What are apache struts?

971


Which components are available using actioncontext map?

1210


How is the action mapping specified?

1009


What is actioncontext?

1003


What is apache struts used for?

973


What is the role of action class?

1083