Term
What does the Handler Mapping do? |
|
Definition
It tells Dispatcher Servlet what class to service the url with. |
|
|
Term
What does the View Resolver do? |
|
Definition
It provides a response suitable to the browser. |
|
|
Term
Spring's MVC is what design pattern? |
|
Definition
|
|
Term
What does a Front Controller pattern do?
(Hint: 2) |
|
Definition
- Centralizes access logic separating it from view.
- Controller at the front of the framework is the 1st to receive all requests. |
|
|
Term
What is the Spring servlet called? |
|
Definition
|
|
Term
What is the Struts servlet called? |
|
Definition
|
|
Term
What is JSF (Java Server Faces) servlet called? |
|
Definition
|
|
Term
What are the benefits of a Front Controller?
(Hint: 3) |
|
Definition
- Avoids duplicates of control logic.
- Provides central access point to the system.
- Applies common logic to multiple requests. |
|
|
Term
What is the browser/server interaction for Spring MVC?
(Hint: 5) |
|
Definition
1. Browser sends URL to server. 2. Server sends request/response pairs to Web Container. 3. Web Container reads web.xml and finds correct servlet. 4. Web Container takes a new thread from the pool and passes HTTP Request and Response objects to it. 5. Thread calls service() (MVC- framework takes over) on the Servlet (Front Controller).
|
|
|
Term
|
Definition
|
|
Term
The Controller is like what? |
|
Definition
|
|
Term
What are some annotations in Spring's MVC?
(Hint: 3) |
|
Definition
@Controller, @RequestMapping, @PathVariable |
|
|
Term
What are some annotations for validation in Hibernate?
(Hint: 2) |
|
Definition
|
|
Term
What is the Dispatcher Servlet? |
|
Definition
It is a central dispatcher for HTTP request handlers/controllers; it then dispatches to registered handlers. |
|
|
Term
Where do you map the Dispatcher Servlet? |
|
Definition
|
|
Term
What parts of Spring's MVC does the programmer need to write?
(Hint: 4) |
|
Definition
The Controller, DaoImpl, the Dispatcher Servlet, and parts of web.xml. |
|
|