JSP Key Concepts 2
Model 1: JSP handles web browser requests, communicates with beans for processing,
then delivers results to the client.
Model 2: A controller inserts itself between the client and JSP,
the controller (servlet) handles web browser requests, communicates with beans for processing,
then selects and responds with the appropriate JSP.
MVC?
Model: data creation, storage, processing
View: composes the screen to show results and receive input
Controller (servlet): input and flow control
Classification by implementation:
C servlet: sends and receives requests via doGet, doPost
M DAO: sends queries to DB, receives results, and exchanges/processes beans
V JSP: displays the received beans on screen
