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 helpers in the form of jsp pages are provided in struts framework?
What are the steps required for setting up validator framework in struts?
Explain the core end goal while using java struts?
How can we write our own interceptor and map it for action?
Why do we need struts?
Give an example where struts tiles may be used?
What is form bean in struts?
Where can I get help with struts?
What is the purpose of @result annotation?
What are the contents on web.xml in struts application ?
What is the difference between validation.xml and validator-rules.xml files in struts?
What is the role of a handler in mvc based applications?
Difference between struts and spring?
What is the purpose of dispatcher result type?
What are pull and push mvc architecture and which architecture does struts2 follow?