MVC Flashcards

1
Q

Model

A

Encapsulates app state (not logic)
Queried to obtain state
Notified by controller when state needs to change and notifies controlled once the state has changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Controller

A

Defines the application logic
Maps user actions to state changes
Updated app state via MODEL
Updates View once the app state has changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

View

A

Presents the state of the app ( via web page or via RESTful API)
Allows user to interact with and modify the state
Does not store the app data (except for caching)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Servlet

A

Java code that runs on a web server/app server and handles the HTTP requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

JSP

A

A bridge between Servlets and HTML
Technology used to create dynamic web pages using servlets(similar to PHP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

JSTL

A

Collection of usefull JSP tags for common tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Blocking vs NonBlocking

A

MVC incorporates the Servlet API and it operates inside a servlet container –> are using blocking coponents
JDBC is blocking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly