Database Web.xml load: spring applicationContext and frontcontroller – servlet mappings: *.jsp -> dispatchServlet ApplicationController formController.

Slides:



Advertisements
Similar presentations
Introduction to the Spring Framework
Advertisements

3 Copyright © 2005, Oracle. All rights reserved. Designing J2EE Applications.
Web Development with Karsten Schulz Terp-Nielsen Master Principal Sales Consultant Oracle Denmark.
Apache Struts Technology
J2EE Design patterns Sharath Sahadevan August 8, 2002 St Louis Java SIG.
Final Project Exercises 5 and 6. General Simplified version of Wikipedia Users read / upload / search for articles Articles in XML –Presentation using.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Object-Oriented Enterprise Application Development J2EE Blueprints.
Layers & Tiers Umair Javed Lec - 41.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Design and Planning Presenter: Mike Team Members: Casey Kaushik Danny.
Apache Struts Technology A MVC Framework for Java Web Applications.
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
© Internna Technologies 1 IWebMvc Features, Possibilities & Goals.
Stateful Web Application Development with Spring Web Flow John Case Senior Consultant Centare Group, Ltd.
Intro to Spring CJUG - January What is Spring? “The Spring framework provides central transaction control of various objects.” This means that any.
Data Persistence and Object-Relational Mapping Slides by James Brucker, used with his permission 1.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
JDBC Session 5 Tonight: Data Access Patterns 1.J2EE Architecture & Design Patterns 2.The Data Access Tier 3.Data Access Patterns –DataAccessObject (DAO)
J2EE DESIGN PATTERNS Terms important in learning Design Patterns: Pattern : Each pattern is a three part rule, which expresses a relation between a certain.
What is Architecture  Architecture is a subjective thing, a shared understanding of a system’s design by the expert developers on a project  In the.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Design Patterns Phil Smith 28 th November Design Patterns There are many ways to produce content via Servlets and JSPs Understanding the good, the.
OpusCollege and the use of Spring and iBatis
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
J2EE Structure & Definitions Catie Welsh CSE 432
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Case Study + MVC Lec Error Pages By means of the page directive, a JSP can be given the responsibility of an Error page An Error JSP will be called.
API Services Persistence Domain Spatial database Hibernate Non-spatial Command API Spatial Other APIs POJO SecurityTX.
Introduction to Web Dimitar Nenchev Ivan Nakov
3-Tier Web Application Architecture. Simple Log-in public String button1_action() { // TODO: Process the button click action. Return value is a navigation.
ACADEMIC INFORMATION AND REGISTRATION SYSTEM OPUS-College.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
JAVA SERVER FACES ADITI RAJORIYA UNI – ar2630. POINTS TO BE DISSCUSED WHAT IS JSF? WHY JSF? ARCHITECTURE JSF VERSIONS UI COMPONENTS JSF STRUCTURE AND.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Java Server Pages (JSP)
Struts Framework Anna Paščenko. What is Struts?  An open source framework for building Java web applications.
Enterprise Java Beans. Model 1 J2EE – Web View Model/View/Controller Model View Control Data base Web Server Model One Architecture HTTP Request HTTP.
Web dialogs as drop-in components Håkan Dahl, Callista Enterprise AB Killing the monolithic webapp.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
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.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Enterra Web GIS Embedded Flash System. Application Features 1. Dynamic data loading and caching Minimum data transfer on startup Additional data transfer.
Catching the Web Flow Have you got the Flow? Björn Beskow.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
APACHE STRUTS ASHISH SINGH TOMAR ast2124. OUTLINE Introduction The Model-View-Controller Design Pattern Struts’ implementation of the MVC Pattern Additional.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
Apache Struts Technology A MVC Framework for Java Web Applications.
Unit of Work Edmonton Code Camp Oct 2007 Presenter: Neil Bourgeois.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
J2EE Lecture 7: Spring – Spring MVC
Design Patterns: Model View Controller
Introduction to J2EE Architecture
Unit 6-Chapter 2 Struts.
AJAX.
Intro to Spring CJUG - January 2013.
Building an Integrable XBRL Portal Daniel Hamm German Central Bank
Model-View-Controller Patterns and Frameworks
CS5220 Advanced Topics in Web Programming Spring – Web MVC
The Model Layer What is Model?
CS5220 Advanced Topics in Web Programming Spring – Web MVC
CS4961 Software Design Laboratory Understand Aquila Backend
Presentation transcript:

Database Web.xml load: spring applicationContext and frontcontroller – servlet mappings: *.jsp -> dispatchServlet ApplicationController formController ApplicationController Handler() { // call business logic, // return model and view. } simpleController Handler() { // call business logic, // return view. } StudentValidato r Validate() StudentManager findStudentsByName() { students = StudentDao.findStudentsByName(); // perform business logic on students: if(students==null) {StudentDao.helplist}; return students; } Service findStudentsByName() { return sqlMap.getStudents(); } StudentDao sqlMap.xml (Ibatis) SELECT * FROM STUDENTS … Data Access Object SqlMapConfig.xml - Database / JDBC Config - sqlMap locaties … Ibatis web flow domain service persistence ApplicationController authorManager.findStudentsByName() get / post (d)html / custom javascript Client FrontController urlMapping: *.jsp  appController … … resolve views map models to views render views FrontcontrollerServlet web view StudentUpdater Command Object getName() setName() … ModelAndView Map - view - model See Object-model applicationContext.xml - define beans - wire service beans into controllers - wire dao beans into managers - map exceptions to pages … spring frontcontroller-servlet.xml - define controllers - resolve views... spring

web view web flow service persistence domain This layer encapsulates the business logic. It is built with JavaBeans. JavaBeans have a certain state (‘name’, ‘address’, …) and behaviour (‘register()’, …). Goal is to encapsulate all business logic in the domain model. All other layers depend on the domain layer. However: The domain layer may not depend on any other layer. a.k.a.‘user-interface’ layer responsible for the presentation towards the end-user. This layer presents (‘renders’) response data from the web-flow layer. does not contain navigation and no business logic contains Jsp’s (with images and stylesheets) and JavaScript (Ajax). database responsible for the navigation of the end-user. transforms HTTP-requests into general requests (without HTTP specific matters) for the underlying service layer does not contain business logic, but does call business logic in the service layer. contains Servlets (Controller function) uses POJO’s and the JavaBeans from the domain-layer. offers business logic to the web flow layer in the form of ‘coarse grained’ methods (this means that each method represents a use-case). These methods may not contain ‘state’. handles concurrent requests and therefore has to be totally stateless ! contains Manager-JavaBeans uses POJO’s and the JavaBeans from the domain-layer. The JavaBeans will have to contain as much as possible the ‘real’ business logic. responsible for the storage and retrieval of objects from the domain model. Typical strategy herefor are the ‘CRUD’ methods. can only be addressed by the service layer. The service layer is therefore responsible for the coordination of transactions. uses the iBatis SQLMaps framework. responsible for the storage of data and not for business logic. Only in the case of persistency logic or performance matters it is acceptable to store logic in the database.