MVC Flashcards
Model
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
Controller
Defines the application logic
Maps user actions to state changes
Updated app state via MODEL
Updates View once the app state has changed
View
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)
Servlet
Java code that runs on a web server/app server and handles the HTTP requests
JSP
A bridge between Servlets and HTML
Technology used to create dynamic web pages using servlets(similar to PHP)
JSTL
Collection of usefull JSP tags for common tasks
Blocking vs NonBlocking
MVC incorporates the Servlet API and it operates inside a servlet container –> are using blocking coponents
JDBC is blocking