



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Ye Wu http://www.ise.gmu.edu/~wuye/ SWE 642 Software Engineering for the World Wide Web
sources: Professional Java Server Programming, Patzer, Wrox, Ch 11, 14
Servlet JSP JavaBean
Move Business Logic backward to JavaBeans
Move control forward to Java Servlets
11/24/2003 © Dr. Wu and Dr. Offutt 3
In both cases, the goal is to separate logic from presentation and to separate as many concerns in the logic as possible.
Browser on a client
Browser on a client
Browser on a client
Server
Client requests areJSP or servlets^ Database intercepted here
EJB Java Beans
Uses or instantiates
Request Response
11/24/2003 © Dr. Wu and Dr. Offutt 7
Worker JSP (^) Beans Business Processing
Request
Response
11/24/2003 © Dr. Wu and Dr. Offutt 9
Request Mediating JSP/Servlet Business Processing Response
Presentation JSP
Presentation JSP
Presentation JSP
Worker Beans
Worker Beans Delegate
11/24/2003 © Dr. Wu and Dr. Offutt 13
Response
Request
JSP
Mediating JSP
Service
Workers
Java Bean
EJB
Resources
Biz Delegate