Apache Cocoon Part II 3/6/06 Kevin Davis. Learning Objectives Understand how CForms work Understand how XSPs work Make a basic CForm that can pass information.

Slides:



Advertisements
Similar presentations
Servers- Apache Tomcat Server Server-side scripts- Java Server Pages Java Server Pages - Xue Bai.
Advertisements

Apache Struts Technology
Servlets Enterprise Systems Programming. Servlets  Servlets: server-side Java programs that enable dynamic processing of web-based requests  Web-based.
Languages for Dynamic Web Documents
XHTML Presenters : Jarkko Lunnas Sakari Laaksonen.
PHP Form Processing. Using Forms in PHP  Two steps to process  Display the form  Process the submitted data.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
PHP Form Processing. Using Forms in PHP  Two steps to process  Display the form  Process the submitted data.
Get Started in 4 Easy Steps!
Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leader : Ahmed RHIAT.
Introduction to Struts 2.0 Jenny Ni Joey Feng Winddays Wang Hewmmi Zhu Heather Lv Software School,Fudan University 1.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
DSpace XML UI Project Texas A&M University Digital Initiatives, Research and Technology Scott Phillips, Cody Green, Alexey Maslov, Adam Mikeal, Brian Surratt,
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
JavaScript Form Validation
Internet Applications Spring Review Last week –PHP/JavaScript – Form –Questions?
Agenda Web Development Chapter 7 Review Class Discussion Issues.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Homework for October 2011 Nikolay Kostov Telerik Corporation
1 Understanding Cocoon2 Pankaj Kumar May 24, 2001 Web Services Organization HPMD, SSO, HP.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
SDPL 2002Notes 7: Apache Cocoon1 7 XML Web Site Architecture Example: Apache Cocoon, a Web publishing architecture based on XML technology
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
JSP Java Server Pages Softsmith Infotech.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
Mid Morning Discussion Introduction to the IBIS-Q Front-End System ("Module" Emphasis) What is the front end Where does the front end fit in What is a.
Standalone Java Application vs. Java Web Application
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
G053 - Lecture 16 Validating Forms Mr C Johnston ICT Teacher
March 28, 2001XSP Session O’Reilly Enterprise Java Conference 1 XSP Session Sue Spielman President/Consulting Engineer President/Consulting Engineer
© MIT 2000 Building Web Applications With Webjects Michael D. Barker The MIT Educational Media Creation Center September 2001.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Simple MVC. An example: join.jsp
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Apache Cocoon Part I 2/27/06 Kevin Davis. Learning Objectives Understand the function of Cocoon Create a working sitemap Make available a stylesheet-
METS Dissemination METS Opening Day Corey Keith
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
1 Final Review. 2 Final Exam  30% of your grade for the course  December 9 at 7:00 p.m., the regular class time  No makeup exam or alternate times.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
Web Terminology Intro to Web. North Lake College 2 by Sean Griffin HTML vs. XHTML HTML: Hypertext Markup Language XHTML: eXtensible Hypertext Markup Language.
Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI.
© MIT 2000 Building Web Applications With Webjects Michael D. Barker The MIT Educational Media Creation Center November 2001.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
Keenan Adamson Supervisor: Dr Bill Tucker.
Basic web application development with Apache Cocoon Basic web application development with Apache Cocoon 2.1 Jasha Joachimsthal Jeroen.
 Java Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
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.
Struts2 Validation using XML Approach. May 12, 2011 Need For Validation Validation can be defined as the assessment of an action so as to ensure that.
Apache Cocoon – XML Publishing Framework 데이터베이스 연구실 박사 1 학기 이 세영.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Montreal CRIM Workshop Comparative Display Technologies.
The Brenkoweb provides the excellent online programming tutorial for the programmer in various languages like as PHP, SQL, HTML, ASP, Javascript,
PHP Assignment Help BookMyEssay. What is PHP PHP is a scripting language generally used on web servers. It is an open source language and embedded code.
Unit 6-Chapter 2 Struts.
ITI 133 HTML5 Desktop and Mobile Level I
Database Driven Websites
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
JavaScript Form Validation
Presentation transcript:

Apache Cocoon Part II 3/6/06 Kevin Davis

Learning Objectives Understand how CForms work Understand how XSPs work Make a basic CForm that can pass information to an XSP

Cocoon Forms vs HTML Forms Cocoon forms – use XML to make reusable form objects with easy validation HTML forms – must write all forms individually and use Javascript or other languages for some validation See working samples at mples/blocks/forms/ mples/blocks/forms/

Widgets XML entities in the definition file that give a form field its name and validation information address: Called in the template file along with HTML code for formatting Have built-in responses to validation issues, including help tooltips and redisplaying the form if something wasn’t correct

Flow A Javascript file and the sitemap control the order in which pages are called function registration() { var form = new Form("registration_definition.xml"); form.showForm("registration-display-pipeline"); var viewData = { "username" : form.getChild("name").getValue() } cocoon.sendPage("registration-success-pipeline", viewData); }

Flow Continued </map:flow>…<map:pipeline> </map:match>… </map:transform> <map:serialize/></map:match>… <map:serialize/></map:match>

XSPs Much like servlets, XSPs can request data from a submitted form and insert it into a database, or call and display data from a database XML tags and Java code can be used Connection to a database occurs in one Cocoon configuration file, XSPs just need to call the name of the database

XSPs Continued otc INSERT into otc_users (name, ,password,age,spam) values (' esc_name ',' ',' ',' ',' ') … [java code]

Exercise Follow the guide located at mple.html - create your own template and definition files with at least one unique widget mple.html Compare this to the working example located at istration istration Look at the files sitemap-modified.xmap and test.xsp in the opt/tomcat5/webapps/cocoon/cforms directory to see how a CForm could use an XSP to insert data into a database