AppFuse Architecture Directory Structure, Build/Test/Deploy Processes.

Slides:



Advertisements
Similar presentations
May 13th, Lucek Consulting Basic Java Servlet/JSP Web Development David Lucek Lucek Consulting
Advertisements

Apache Tiles.
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Apache Struts Technology
The Developer Perspective Michelle Osmond. Design – Requirements Gathering Sales & Research projects –Prototypes/Demos User group meetings Usability workshops.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse Web Tools Platform.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
Coypright (c) Ning Chen, Ph.D CPSC 425 Java Enterprise Application Programming Presented by Ning Chen, Ph.D. Chair/Professor Department of Computer.
Web programming for project students Dr Jim Briggs.
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.
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
Introduction to Java web programming Dr Jim Briggs JWP intro1.
Eclipse is an open source IDE (Integrated Development Environment) for developing applications in Java, C/C++, HTML, Cobol, Perl, etc. The official Eclipse.
Curation Tool June 11, Curation Tool Overview Architecture Implementation Dependencies Futures 2.
© 2006 by IBM 1 How to use Eclipse to Build Rich Internet Applications With PHP and AJAX Phil Berkland IBM Software Group Emerging.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
1 INTRO TO BUSINESS COMPONENTS FOR JAVA (BC4J) Matt Fierst Computer Resource Team OracleWorld Session
Module - Technical Basics
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Introduction to J2EE Architecture Portions by Kunal Mehta.
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
© 2006 IBM Corporation IBM WebSphere Portlet Factory Architecture.
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
Web Applications - Basics. Introduction to Web Web features Clent/Server HyperText Transfer Protocol HyperText Markup Language URL addresses Web server.
Struts J2EE web application framework “ Model 2 ” Model View Controller Controller Servlet Key features XML metadata Struts taglib Simplified form validation.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Fall CIS 764 Database Systems Design L8. Web ….
J2EE Overview Web Programming CSCI J2EE multi-tier architecture Servlet: Java class loaded into Web server JSP page: enhanced HTML page that is.
CaDSR Freestyle Search June 11, caDSR Freestyle Search Overview Architecture Implementation Dependencies Futures 2.
Enterprise Development with IntelliJ IDEA Mike Aizatsky Project Manager JetBrains, Inc.
Ch 2 – Application Assembly and Deployment COSC 617 Jeff Schmitt September 14, 2006.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
Apache Struts. J2EE Web Application using MVC design pattern Why MVC? Separate components = easier maintenance – Model component holds object data – View.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
© 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 3 1COMP9321, 15s2, Week.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
The Power of XDoclet Darren Landoll CIS Database System Design Kansas State University.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Chapter 6 Chapter 6 Server Side Programming (JSP) Part 1 1 (IS 203) WebProgramming (IS 203) Web Programming.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
(1) Code Walkthrough robocode-pmj-dacruzer Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
APACHE STRUTS ASHISH SINGH TOMAR ast2124. OUTLINE Introduction The Model-View-Controller Design Pattern Struts’ implementation of the MVC Pattern Additional.
Apache Struts Technology A MVC Framework for Java Web Applications.
CS320 Web and Internet Programming Web Application and MVC Chengyu Sun California State University, Los Angeles.
J AVA T RAINING IN A HMEDABAD By TOPS Technologies 1 TOPS Technologies Java Course.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
V Web Tier Architecture MVC and Struts. v First, there were servlets And things were good Faster than CGI programs More scalable with built-in.
Struts 2 Development. Topics  Roles in Struts Development  Control Flow  Actions  Struts 2 Views and Target  Struts 2 Custom Tags  Validation 
RAD – 255 Certification Overview
Unit 6-Chapter 2 Struts.
Introduction to Struts
J2EE Application Development
Building an Integrable XBRL Portal Daniel Hamm German Central Bank
The Model Layer What is Model?
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
JavaServer Faces: The Fundamentals
Struts BY: Tejashri Udavant..
Presentation transcript:

AppFuse Architecture Directory Structure, Build/Test/Deploy Processes

Project Structure  Directory structure –Simpler is better –Map to artifacts –Customizations/personalization's –IDE issues –Separate source from artifacts - cleanable

Top-level Directory Structure  bin – automation scripts  lib – 3 rd party libraries (i.e. Struts and Hibernate)  metadata – SQL scripts, server configurations and XDoclet fragments  src – Java source files  test – JUnit, Cactus, StrutsTestCase tests  tools – Strutsgen: a tool for generating JSPs from ActionForms  web – JSPs, properties files, images, scripts, stylesheets

Open Source Dependencies  Ant-contrib – use “propertycopy” task in build process  Checkstyle – used to verify that coding standards are followed  Dbunit – cleans/loads data into database before tests are run  Display Tag – used to display list screens (including sorting/paging)  Hibernate – persistence engine  Cactus – for unit testing server-side java code  Log4j – logging framework, includes ing errors  Struts – web application framework, we use JSPs and Servlets  Java2HTML – creates HTML pages of.java files … continued

Open Source Dependencies, cont.  JUnitDoclet – generates skeleton test cases for a class’s methods  PMD – inspects code for unused variables, parameters, etc.  StrutsMenu – navigation system  StrutsTestCase – extension of Cactus to test Struts’ Actions  WebTest – used to test JSPs  XDoclet – code and deployment descriptor generator

Java Directory Structure src & test common ejb web org.appfuse…

Ant Build File  XML format  In project root directory  Default name: build.xml  Declarative - define steps, not scripty details  Defines a single project  A project contains targets  Targets contain tasks

AppFuse Tasks  Main tasks in appfuse project –clean –ejbdoclet and webdoclet –compile-module (where module is common, web or ejb) –package-module –deploy –test-module

build/deploy process

Test process

XDoclet’s Role  Generates Hibernate mapping files (.hbm.xml) -  Generates Struts’ ActionForms from POJOs -  Generates Validator’s validation.xml from ActionForms -  Generates web.xml and struts- config.xml -

XDoclet Examples  Hibernate: User.java table=“app_user"  Generating ActionForms: User.java include-all="true" extends=“BaseForm"

XDoclet Examples, cont.  Generating entries in struts-config: UserAction.java path="/saveUser" name=“userForm“ scope="request" validate="true" parameter="action" input=“editUser"

User Interface  Constructed with Tiles – web/layouts/baseLayout.jsp controls the entire layout of the site.  Uses Struts JSP tags for editing/saving forms.  Uses JSTL for conditionals, includes and messages.

User Interface, cont.  XHTML 1.0 and CSS 2.0 –Allows validation –Cleaner HTML (all attributes lowercase, etc) –DOCTYPE switching

More Resources  AppFuse Project Homepage – –  Java Development with Ant –  Enhance J2EE component reuse with XDoclet –  Step-by-Step tutorial on using XDoclet to write your own custom templates –  Ant, JUnit, XDoclet Presentations –