Slides before 1st Section Di IvIder Too Much Cod >Beanify Embedded Unused Navigational Information-> Section Cop Space 1
Slides before 1st Section Divider Too Much Code - >Beanify Ignoring Reality-> Introduce Error Page Unused Section Space 1 Embedded Navigational Information-> Introduce Traffic Cop Unused Section Space 2 Unused Section Space 3 Copy and Paste JSP-> Introduce Template - >Introduce Delegate Controller
JSP J2EE Refactoring Patterns/AntiPatterns 徐迎晓 复日大学软件学院 Ⅺ yanGtao@126.cm
JSP J2EE Refactoring Patterns/AntiPatterns 徐迎晓 复旦大学软件学院 xuyingxiao@126.com
e Customer account ElectronicBill e CustomerInfo Screeen e ScheduleRecurringPayment Screen
Customer Account ElectronicBill CustomerInfoScreeen ScheduleRecurringPaymentScreen
AntiPattern--lgnoring Reality <a page isELEnabled="true"> <html> <head> <title>Welcome To This Page</title> /head> <isp: useBean id="timer" class="com util. Timer"/> <body> <table> <tr> <- timer is a bean that returns a formated date --%> <ta>Welcome it's stimer. now).</ta> </tx> </table> </body> </html>
AntiPattern--Ignoring Reality
Stack Trace Error Page Catch block Request Render SP Browser Web Container (SP/Servlet Engine (Template Text Java Code Response Send response