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
How can we display validation errors on jsp page?
What is the actionform?
What is the purpose of form-be tag in struct-config.xml?
What are construction struts?
What are the classes used as part of struts framework ?
What is difference between actionform and dynaactionform?
How you will enable front-end validation based on the xml in validation.xml?
What's mvc pattern ?
How action-mapping tag is used for request forwarding in struts configuration file?
What applications use apache struts?
What is the purpose of @beforeresult annotation?
What is the use of form bean in struts?
What is actionservlet?
What are the benefits of Interceptors in Struts2?
What is struts and springs in java?