Shared Flashcard Set

Details

Spring - MVC
n/a
16
Computer Science
Undergraduate 1
06/03/2013

Additional Computer Science Flashcards

 


 

Cards

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
Front Controller pattern
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
Dispatcher Servlet
Term
What is the Struts servlet called?
Definition
Action Servlet
Term
What is JSF (Java Server Faces) servlet called?
Definition
Faces Servlet
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
ModelMap is like what?
Definition
A session object.
Term
The Controller is like what?
Definition
Strut's Action class.
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
@NotEmpty & @Range
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
In web.xml.
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.
Supporting users have an ad free experience!