adspace


When wil use singleton class in Struts

Answer Posted / avani

Struts will create a single instance of the Action and
allow multiple threads to invoke execute(). This allows for
faster request processing, as the framework is not
continually creating new Action instances to handle each
request. But because a single object is shared between
multiple threads, you must observe proper threading
considerations, as other threads are likely to pummel
instance variables that hold state in the action.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about validation plugin ?

1028


How is declarative handling of exceptions done in struts ?

1006


What is the difference between filters and interceptors ?

1311


What are the contents on web.xml in struts application ?

1068


What is action chaining ?

1164