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
What is Struts2?
What is struts actionmapping?
What is the purpose of @keyproperty annotation annotation?
What is the purpose of form-beans tag in struct-config.xml?
What is the purpose of @beforeresult annotation?
What is the procedure of operation of a form tag?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert
Which class is the Front Controller in Struts2?
How do you convert struts to springs?
Which model components are supported by Struts?
Is struts mvc framework?
What do you mean by inner class and anonymous class?
What is actioninvocation in struts2?
What is the purpose of @result annotation?
What configuration changes are required to use resource files in Struts?