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
How does interceptor work in struts2?
What is the difference between plain-validator and field-validator?
What is front controller in struts?
How many struts config file can be created in struts?
What is the purpose of @stringlengthfieldvalidator annotation?
What is the purpose of @intrangefieldvalidator annotation?
What is includeaction?
What is struts actionmapping?
What does it cost to replace struts?
Can you explain custom tag?
How you will enable front-end validation based on the xml in validation.xml?
How the flow of various requests happens in struts application?
Why use struts framework in java?
Which technologies can be used at view layer in struts?
What is structs 2 validation framework?