1.

What Is The Difference Between Controller And Task Command.?

Answer»

Controller COMMAND is the command that gets called upon a request, just like We have actions in struts and controller in Spring. Task is a step in this bigger process. Task command are the commands that perform SPECIFIC task for a controller command, like service classes in other frameworks. In order to complete the request, a controller command may INVOKE multiple task commands.

Other difference are:

  1. There is a URL mapping for controller command whereas Task command don't have URL mapped to them.
  2. Controller command gets invoked before the task command.

Controller Command is the command that gets called upon a request, just like We have actions in struts and controller in Spring. Task is a step in this bigger process. Task command are the commands that perform specific task for a controller command, like service classes in other frameworks. In order to complete the request, a controller command may invoke multiple task commands.

Other difference are:



Discussion

No Comment Found