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
What is ValueStack and OGNL?
Name the different types of actions found in struts.
What is the purpose of form-be tag in struct-config.xml?
What do you mean by tiles in struts?
What are the steps required for setting up validator framework in struts?
How do I access token?
What is the purpose of execute() method?
What is validate() and reset() functions?
How tag libraries are defined in Struts?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
How do you create message resource?
Explain how can we upload files in struts2 application?
What do you mean by actionform?
What is meant by custom tags?
What does validation interceptor?