In ActionClass we can use only one action i.e execute(), but
in DispatchAction we can use multiple actions.My question is
, we can use multiple actions in Action class
if(action.equals("add") if(action.equals("update"). Then
when to use Action and DispatchAction which is frequently
in webapplications.
Answer Posted / sekhar babu
If multiple actions refer to the same formbean then we
should go for DispatchAction. Yes as you said it is possible
to write in Action. But by using dispatchAction we can
simply specify the parameter name in config file.
No need to write the code in our appln
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Name some useful annotations introduced in Struts2?
What is Custom Type Converter in Struts2?
What’s the utilization of struts.xml configuration file?
Define struts?
What is struts-default package and what are it’s benefits?
How can link tag’s action attribute be used?
Name the different types of actions found in struts.
Explain the difference between plain-validator and field-validator in struts?
Can a reducer dispatch an action?
What is the purpose of interceptors?
What is the use of jsonvalidation in struts?
What is the use of jsonvalidation?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
How we can controlled duplicate form submission in struts?
What are the important methods of actionform?