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

Explain the core end goal while using java struts?

879


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

1000


What is the purpose of @element?

955


How can we handle exceptions thrown by application in Struts2?

890


Explain struts.devmode?

926


What are the pros of struts 2?

922


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

907


Explain about tiles?

991


What is the purpose of @doublerangefieldvalidator annotation?

976


What are Struts2 core components?

954


What kind of mvc is struts 2?

960


What are the 5 constants of action interface?

961


How to use dispatchaction?

983


Which class is the Front Controller in Struts2?

928


What is apache struts vulnerability?

879