Answer Posted / shrikant kale
Basically ,ApplicationContoller/RequestProcessor will
create & use the only instance of each Action class [hence:
Singleton in nature] .
Also, it is not Thread-Safe as it suppose to serve the
multiple request.
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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is spring hibernate and struts in java?
How the exceptions are handled in struts?
What are the classes used in struts?
How an actionform bean is created?
What is the purpose of @conversionerrorfieldvalidator annotation?
What are the core classes of the struts framework?
How you will enable front-end validation based on the xml in validation.xml?
Why are struts tightly coupled?
What are the custom tags?
What is the difference between plain-validator and field-validator?
What is the purpose of global-forwards tag in struct-config.xml?
How do u provide security to ur project?(Banking domain project)
How to handle exceptions in structs?
What is container struts2?
How to get data from the velocity page in a action class?