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 do you mean by dynaactionform?
List the important attribute and elements of action mapping under struts.
How can we display all validation errors to user on jsp page?
What is the purpose of struct-config.xml in struct2?
What are the some useful annotations introduced in struts2?
Explain the components of struts?
Lists the bundled validators in struts?
How can forward action be used to restrict a strut application to mvc?
What are Struts2 core components?
What is the purpose of redirect result type?
How to get data from the velocity page in a action class?
What is the purpose of '@keyproperty'?
What kind of mvc is struts 2?
Who makes the struts?
What configuration changes are required to use resource files in Struts?