May 2001
Intermediate to advanced
1088 pages
30h 13m
English
One of the things you will notice in the controller servlet is that it has direct knowledge of the JSP that is handling the view. You should strive to break such dependencies whenever you can. For example, if you wanted to do things exactly the same way in the controller but display a different view of the data, you would have to make a separate version of the controller that displays the alternate view.
The controller should be concerned with sending input information to the model, and the view should be concerned with displaying the output. The only thing that ties the controller to the view at the moment is the fact that the controller contains the logic to forward the request on to the view. The way ...
Read now
Unlock full access