Is it possible to create mulitple instance of one Action
Class in struts?
Answer Posted / sitaram
Only one instance of action class is created per
application, as we know for each request container will
create separate thread hence for 100 request 100 theads will
be creates and that 100 request can handle
concurrently...(which is executing execute() method of
action class's single instance) i.e. you can say class
variable of action class is not at all thead safe.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain struts?
What is the purpose of @before annotation?
What is the purpose of form-beans tag in struct-config.xml?
What is the actionform?
Which design pattern the interceptors in struts2 is based on?
how to develop the submit and search operations in single jsp using struts?
What is the purpose of action-mappings tag in struct-config.xml?
What is strut web xml?
What is spring and struts in java?
Whats the difference between the default namespace and the root namespace?
Can we handle exceptions in Struts programmatically?
Are interceptors thread safe?
What is struts framework in java?
What are the steps used to setup dispatch action?
Name some of the features of struts2?