COMP9321 Web Application Engineering Semester 2, 2016

Slides:



Advertisements
Similar presentations
1 Pertemuan 12 Design Pattern Matakuliah: T0053/Web Programming Tahun: 2006 Versi: 2.
Advertisements

Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
Model-View-Controller ("MVC") This is a architectural design pattern for interactive applications. This design pattern organizes an interactive application.
Object-Oriented Enterprise Application Development J2EE Blueprints.
James Tam Introduction To Design Patterns You will learn about design techniques that have been successfully applied to different scenarios.
Spring 2010CS 2251 Design Patterns. Spring 2010CS 2252 What is a Design Pattern? "a general reusable solution to a commonly occurring problem in software.
Software Engineering I Object-Oriented Design Software Design Refinement Using Design Patterns Instructor: Dr. Hany H. Ammar Dept. of Computer Science.
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
Façade Design Pattern Source: Design Patterns – Elements of Reusable Object- Oriented Software; Gamma, et. al.
Overview of Design Patterns & The MVC Design Pattern Sapana Mehta.
UNIT-V The MVC architecture and Struts Framework.
Design Patterns Trends and Case Study John Hurst June 2005.
MVC pattern and implementation in java
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 1 1COMP9321, 15s2, Week.
Software Design Refinement Using Design Patterns Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Model View Controller (MVC) Rick Mercer with a wide variety of others 1.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Software Architecture April-10Confidential Proprietary Click to edit Master text styles Second level Third level Fourth level Fifth level Software Architecture.
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Core Indigo Patterns Ted Neward
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Model View Controller Architecture of Java Web Applications Dr. M V S Peri Sastry, Ph.D.[BITS-Pilani]
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 8 1COMP9321, 15s2, Week.
Java EE Patterns Dan Bugariu.  What is Java EE ?  What is a Pattern ?
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 7 1COMP9321, 15s2, Week.
SOEN 6011 Software Engineering Processes Section SS Fall 2007 Dr Greg Butler
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 11 (Part I) 1COMP9321,
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 10 1COMP9321, 15s2,
Chapter 9 Web Application Design. Objectives Describe the MVC design pattern as used with Web applications Explain the role and responsibilities of each.
Apache Struts Technology A MVC Framework for Java Web Applications.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
COMP9321 Web Application Engineering Semester 2, 2016 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 8 1COMP9321, 16s2, Week.
J2EE Platform Overview (Application Architecture)
Presented by FACADE PATTERN
INTERNATIONAL BURCH UNIVERSITY
COMP9321 Web Application Engineering Semester 1, 2017
Design Patterns Source: “Design Patterns”, Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides And Created.
Software Design Refinement Using Design Patterns
SA Capstone Requirements and Design Week 6 SYST Winter 2017
COMP9321 Web Application Engineering Semester 1, 2017
Structure of a web application
COMP9321 Web Application Engineering Semester 2, 2017
Advanced Programming Dr. Sadi Seker.
MVC Architecture, Symfony Framework for PHP Web Apps
Chapter 10 Design Patterns.
Introduction to Advanced Java Programming
COMP9321 Web Application Engineering Semester 1, 2017
COMP9321 Web Application Engineering Semester 2, 2017
OO Methodology OO Architecture.
Instructor: Dr. Hany H. Ammar
COMP9321 Web Application Engineering Semester 2, 2017
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
COMP9321 Web Application Engineering Semester 1, 2017
Design and Maintenance of Web Applications in J2EE
Advanced Programming Behnam Hatami Fall 2017.
CS102 – Bilkent University
Java Web Application Framework
COMP9321 Web Application Engineering Semester 2, 2016
Model-View-Controller Patterns and Frameworks
Patterns.
The Model Layer What is Model?
COMP9321 Web Application Engineering Semester 2, 2016
Advanced ProgramMING Practices
Introduction to Design Patterns
Advanced ProgramMING Practices
COMP9321 Web Application Engineering Semester 1, 2017
Presentation transcript:

COMP9321 Web Application Engineering Semester 2, 2016 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 7 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2445 COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. A design pattern represents a solutions to problems that arise when developing a software. COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. A design pattern represents a solutions to problems that arise when developing a software. Frameworks Subsystems Sub-subsystems Design pattern are granular and applied at different levels such as: COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. A design pattern represents a solutions to problems that arise when developing a software. Frameworks Subsystems Sub-subsystems Design pattern are granular and applied at different levels such as: Design Architectural Analysis Creational Structural Behavioral Categories include: COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. A design pattern represents a solutions to problems that arise when developing a software. Frameworks Subsystems Sub-subsystems Design pattern are granular and applied at different levels such as: Design Architectural Analysis Creational Structural Behavioral e.g. MVC: Model View Controller Categories include: COMP9321, 16s2, Week 7

Design Patterns A pattern is a proven solution to a problem in a context. Each pattern expresses a relation between a certain context, a problem, and a solution. A design pattern represents a solutions to problems that arise when developing a software. Frameworks Subsystems Sub-subsystems Design pattern are granular and applied at different levels such as: Design Architectural Analysis Creational Structural Behavioral Categories include: Gamma et al (Gang of Four) produced a famous book which listed 23 “Design” patterns COMP9321, 16s2, Week 7

J2EE Design Patterns COMP9321, 16s2, Week 7

J2EE Design Patterns COMP9321, 16s2, Week 7

Web Application Architecture COMP9321, 16s2, Week 7

Web Application Architecture COMP9321, 16s2, Week 7

Web Application Architecture COMP9321, 16s2, Week 7

Web Application Architecture COMP9321, 16s2, Week 7

Web Application Architecture COMP9321, 16s2, Week 7

Web Application Layers COMP9321, 16s2, Week 7

J2EE design guidelines: Web tier COMP9321, 16s2, Week 7

J2EE design guidelines: Web tier COMP9321, 16s2, Week 7

Servlet Design Guidelines COMP9321, 16s2, Week 7

Servlet design guidelines: When to use Servlets COMP9321, 16s2, Week 7

Servlet design guidelines: When to use Servlets COMP9321, 16s2, Week 7

JSP Design Guidelines http://www.oracle.com/technetwork/articles/java/servlets-jsp-140445.html COMP9321, 16s2, Week 7

JSP Design Guidelines COMP9321, 16s2, Week 7

JSP Design Guidelines COMP9321, 16s2, Week 7

JSP Design Guidelines Include directive includes the file at translation time; whereas the include action includes the file at runtime. COMP9321, 16s2, Week 7

JSP Design Guidelines COMP9321, 16s2, Week 7

JSP Design Guidelines COMP9321, 16s2, Week 7

JSP Design Guidelines COMP9321, 16s2, Week 7

General Guideline for Servlet/JSP/JavaBeans COMP9321, 16s2, Week 7

General Guideline for Servlet/JSP/JavaBeans COMP9321, 16s2, Week 7

General Guideline for Servlet/JSP/JavaBeans COMP9321, 16s2, Week 7

Structuring Web applications Architectural Patterns (MVC) COMP9321, 16s2, Week 7

Structuring Web applications COMP9321, 16s2, Week 7

Structuring Web applications COMP9321, 16s2, Week 7

Structuring Web applications COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Example COMP9321, 16s2, Week 7

Model 1 Architecture COMP9321, 16s2, Week 7

MVC Model View Controller COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

MVC Components and Roles MVC can be broken down into three elements: Model - The model represents data and the rules that govern access to and updates of this data. View - The view renders the contents of a model. It specifies exactly how the model data should be presented. Controller - The controller translates the user's interactions with the view into actions that the model will perform. http://www.oracle.com/technetwork/articles/javase/index-142890.html COMP9321, 16s2, Week 7

MVC Components and Roles http://www.oracle.com/technetwork/articles/javase/index-142890.html COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

Model 2 Architecture = MVC pattern COMP9321, 16s2, Week 7

Case for a centralised controller COMP9321, 16s2, Week 7

Case for a centralised controller COMP9321, 16s2, Week 7

Case for multiple controllers COMP9321, 16s2, Week 7

FrontController Pattern COMP9321, 16s2, Week 7

FrontController Pattern The Front Controller pattern is a software design pattern. The pattern relates to the design of web applications. It provides a centralized entry point for handling requests. Front controllers are often used in web applications to implement workflows. The front controller may be implemented as a Java object. COMP9321, 16s2, Week 7

FrontController Pattern The Front Controller pattern is a software design pattern. The pattern relates to the design of web applications. It provides a centralized entry point for handling requests. Front controllers are often used in web applications to implement workflows. The front controller may be implemented as a Java object. COMP9321, 16s2, Week 7

FrontController implementation: Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Command Design Pattern COMP9321, 16s2, Week 7

Identifying the Command Pattern in the phonebook lab COMP9321, 16s2, Week 7

Implementing the Command Pattern COMP9321, 16s2, Week 7

Typical "Assignment 2" Architecture COMP9321, 16s2, Week 7

Next Week COMP9321, 16s2, Week 7

References Core J2EE patterns, Deepak Alur, John Crupi and Dan Marlks, Prentice Hall Patterns of Enterprise Application Architecture, Martin Fowler, Addison-Wesley http://java.sun.com/blueprints/patterns/ http://www.oracle.com/technetwork/articles/javase/index-142890.html COMP9321, 16s2, Week 7

COMP9321, 16s2, Week 7