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 actionmapping?
How interceptor works in struts 2?
What is difference between struts1 and struts2?
What kind of mvc is struts 2?
Do you need an alignment after replacing struts?
How exceptions are handled in struts application?
What’s the utilization of resource bundle properties file in struts validation structure?
Can you explain the directory structure for a struts folder in brief ?
What steps are required to for an application migration from Struts1 to Struts2?
What is the purpose of @key annotation annotation?
What do you mean by the abstract package in struts2, and what is its utilization?
Define struts?
What is apache struts used for?
Which technologies can be used at view layer in struts?
What is the purpose of form-be tag in struct-config.xml?