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
Why do we need mapdispatchtoprops?
What do you mean by a custom tag?
What is role of actionservlet?
How many action classes can be used in struts application?
What is dispatchaction?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
Give an alternative way to protect jsp’s with not much features from direct access.
What are the core classes of struts?
Can we handle exceptions in Struts programmatically?
What is Custom Type Converter in Struts2?
What is Struts2?
What is the purpose of @createifnull annotation annotation?
What is switchaction?
What are the cons of struts 2?
How to explain Software Bank Loan descriptions