What do you think? Do you know the answer? IS there an answer? Would you agree with Bob, and leave the servlets as they are, or would you put the code into just one servlet Controller? And if you do use just one Controller for everything, how will the Controller know which Model and View to call?
The answer to this question won’t come until the very end of the book, so think about this for a few moments, then put it in a mental background thread...
Sharpen your pencil
Using MVC in a servlet & JSP world, each of these three components (JSP, Java class, Servlet) plays one of the three MVC roles. Circle the “M”, the “V”, or the “C” depending on which MVC part that component plays. Circle only one letter per component.
What do the letters MVC represent in the MVC design pattern?
M stands for ________________________
V stands for ________________________
C stands for ________________________
The Container gives your web app communications support, lifecycle management, multithreading support, declarative security, and support for JSPs, so that you can concentrate on your own business logic.
The Container creates a ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.