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
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
What is Struts2?
How to use dispatchaction?
Why do the struts tags provide for so little formatting?
How do you convert struts to springs?
What is difference between interceptors and filters?
Are interceptors and filters different?
What is the purpose of action tag in struts.xml?
What configuration changes are required to use Tiles in Struts?
What should be the name of xml file used for validation in struts?
What is the difference between shocks and struts?
How to upload struts file?
What is dispatchaction?
What is the use of form bean in struts?
What are construction struts?