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 purpose of @emailvalidator?
What is the role of a handler in mvc based applications?
How can forward action be used to restrict a strut application to mvc?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
Are struts thread safe?
What is action class? What are the types of action class?
What is the use of reset method of ActionForm class?
Do I have to credit struts on my own website?
Describe validate() and reset() methods.
What is the use of Struts.xml configuration file?
Is Struts Framework part of J2EE?
Can we have more than one struts-config.xml file for a single struts application?
What are the ways in which duplicate form submission can occur?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
Lists the bundled validators in struts?