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
Explain the core end goal while using java struts?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
What is the purpose of @element?
How can we handle exceptions thrown by application in Struts2?
Explain struts.devmode?
What are the pros of struts 2?
How to get data from the velocity page in a action class?
Explain about tiles?
What is the purpose of @doublerangefieldvalidator annotation?
What are Struts2 core components?
What kind of mvc is struts 2?
What are the 5 constants of action interface?
How to use dispatchaction?
Which class is the Front Controller in Struts2?
What is apache struts vulnerability?