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 the purpose of @element?

1013


In struts.xml, what does the attribute "method" stands for in the "action" tag?

950


What is action class?

1033


How duplicate form submission can be controlled in struts?

1120


What are action errors?

993


What does i18n interceptor?

1044


Explain about how requests from the client are sent?

1012


Can you explain aware interfaces in struts2?

1025


What is struts 2 framework in java?

1038


What is action support class in struts2?

1006


At the point, you should go for struts framework?

929


Is struts mvc framework?

929


How to handle exceptions in structs?

1130


Which design pattern the interceptors in struts2 is based on?

924


What are the core classes of the struts framework?

940