CSE 510 Web Data Engineering
The MVC Design Pattern & The Struts Framework
UB CSE 510 Web Data Engineering
CSE 510 Web Data Engineering The MVC Design Pattern & The - - PowerPoint PPT Presentation
CSE 510 Web Data Engineering The MVC Design Pattern & The Struts Framework UB CSE 510 Web Data Engineering Previous Attempts: Model 1 Design Pattern for every JSP page p for every type of request r to p insert in p code to implement the
UB CSE 510 Web Data Engineering
UB CSE 510 Web Data Engineering 2
Messy JSP! http://.../students.jsp?action=insert&...
http://.../students.jsp?action=delete&... http://.../students.jsp?action=update&...
UB CSE 510 Web Data Engineering 3
UB CSE 510 Web Data Engineering 4
UB CSE 510 Web Data Engineering 5
View Model Controller/Actions
UB CSE 510 Web Data Engineering 6
UB CSE 510 Web Data Engineering 7
Analysis/ Specification Phase Development Phase
Chief Architect/ Technical Project Leader Business Process Owner (Client) COMMUNICATION business process and specification
COMMUNICATION technical specification and development Developer
specification by customer
built demos and diagrams
inconsistent with spec
communicating spec formally Problem is even worse in evolution phase when application logic is hidden in thousands of lines of code
UB CSE 510 Web Data Engineering 8
UB CSE 510 Web Data Engineering 9
UB CSE 510 Web Data Engineering 10
UB CSE 510 Web Data Engineering 11
Model View Controller
(Page ¡or ¡Ac1on) ¡
HTTP Request
(Page ¡or ¡Ac1on) ¡
1 2 3 5 6 7 HTTP Response HTTP Response
4 Form Validation Error
Request/Session ¡ Scope ¡ Data ¡
set ¡ get ¡
UB CSE 510 Web Data Engineering 12
1 2
UB CSE 510 Web Data Engineering 13
3 4
UB CSE 510 Web Data Engineering 14
5
UB CSE 510 Web Data Engineering 15
6
UB CSE 510 Web Data Engineering 16
7
UB CSE 510 Web Data Engineering 17
UB CSE 510 Web Data Engineering 18