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 strut action mapping?

974


What is the purpose of @key annotation annotation?

1066


What are the core classes of struts framework? Explain

989


Name the different types of actions found in struts.

972


What are result types in struts?

982


How can we handle exceptions thrown by application in Struts2?

926


How can forward action be used to restrict a strut application to mvc?

967


Why are frameworks used?

987


How to display validation errors on jsp page?

998


What is the purpose of @key?

1034


Can we handle exceptions in Struts programmatically?

967


What is the use of Struts.xml configuration file?

924


What is the purpose of @emailvalidator?

963


Explain about the validation steps which have to be carried during validation of client-side address?

971


Which interceptor is responsible for file upload support?

1018