Answer Posted / shrikant kale
ApplicationContoller/RequestProcessor will create & use the
only instance of each Action class [hence: Singleton in
nature] .
Also the Action class has to handle the multiple request
(most of time simultaniously.) so it cant be Thread-Safe.
Hence we must not declare class instance variable in Action
class.If declared so then Action class state becomes non-
thread safe.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is apache struts used for?
How do you convert struts to springs?
Are the struts tags xhtml compliant ?
What is the purpose of @element annotation annotation?
What is the purpose of interceptors?
What does modeldriven interceptor?
Give the details of xml files used in validator framework?
Explain architecture of struts2?
What is the purpose of @validations annotation?
What is the purpose of struts.xml in struct2?
What are the 5 constants of action interface?
Describe the two types of formbeans.
How to override the default error message that can come during file uploading process?
What is the purpose of constant tag in struts.xml?
Why do we need mapdispatchtoprops?