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 are the benefits of Interceptors in Struts2?
What is the default suffix for struts2 action uri ?
What does action do in struts?
When do I need “struts.jar” on my classpath?
How can duplicate form submission be handled in struts 2?
in struts how to use hibernate with struts>
What are the components of struts framework?
What is used to display the intermediate result in an interceptor?
Are struts still used?
How can you create your custom interceptor in struts 2?
What are result types in struts?
What is the difference between session scope and request scope when saving formbean ?
When should be opt for struts framework?
Explain how can we upload files in struts2 application?
How you will make available any message resources definitions file to the struts framework environment?