Model View Controller

Servlets and JSPs can do everything
that Beans and other Java classes can.

Who should do what?

Web Browsers
Cell Phones
Kahunas

request



response

Controller
Servlets

doGet()
doPost()
forward()
forwards to
View
JSPs

<html>
<jsp:useBean />
</html>
creates

updates
persists


uses

Model
Beans

setProperty()
getProperty()
load()
save()