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 / styphy

In Struts-1x there will be only one instance of action
class. Hence it is not thread safe and the programmer has to
make sure that the code is thread safe.

In Struts 2x Action objects are instantiated for each
request, so there are no thread-safety issues. (In practice,
servlet containers generate many throw-away objects per
request, and one more object does not impose a performance
penalty or impact garbage collection.)

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the naming convention for a resource bundle file in struts2?

925


What is defeult result type?

1014


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

957


What applications use apache struts?

881


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

870


What is jakarta struts framework?

921


What is difference between struts1 and struts2?

874


How does one create an action in struts 2?

899


What is the purpose of action tag in struts.xml?

938


Why are springs better than struts?

1052


Why it called struts?

889


Explain the components of struts?

907


How is the action mapping specified?

899


Explain integrate log4j in struts2 application?

950


Which file is used by controller to get mapping information for request routing?

1006