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 the difference between requestaware and servletrequestaware interface?
What are the Core classes of Struts Framework?
Which file is used by controller to get mapping information for request routing?
What are different ways to create Action classes in Struts2?
Can you explain value stack?
Can we have more than one struts-config.xml file for a single struts application?
How an actionform bean is created?
Explain the difference between plain-validator and field-validator in struts?
Difference between struts and spring? Or why use spring, if you are already using struts?
What is apache struts used for?
What is meant by custom tags?
What are the contents on web.xml in struts application ?
What is controller in struts ?
How to build struts application in eclipse?
How to use forward action to restrict a strut application to mvc?