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 kind of mvc is struts 2?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What is request processor and how does it relates to action mapping?
Why are frameworks used?
What is token used for?
Difference between html tags and struts specific html tags
What is the purpose of execute method of action class?
How can we group related actions in one group in Struts?
Are actions thread safe?
What is the purpose of @conversion annotation annotation?
Can explain about the validations and in your project where did u used the validations?
When it’s useful to use IncludeAction?
What is the difference between empty default namespace and root namespace?
What is difference between struts1 and struts2?
What does i18n interceptor?