Basic web application development with Apache Cocoon 2.1 - PowerPoint PPT Presentation

About This Presentation
Title:

Basic web application development with Apache Cocoon 2.1

Description:

Simple servlet for XSL styling of XML. Cocoon 2. Rewrite for ... More than just XSL transformations. Basic web application development with Apache Cocoon ... – PowerPoint PPT presentation

Number of Views:445
Avg rating:3.0/5.0
Slides: 22
Provided by: people4
Learn more at: http://people.apache.org
Category:

less

Transcript and Presenter's Notes

Title: Basic web application development with Apache Cocoon 2.1


1
Basic web application development with Apache
Cocoon 2.1
  • Jasha Joachimsthal (jasha_at_hippo.nl)
  • Jeroen Reijn (j.reijn_at_hippo.nl)
  • 4 May 2007
  • Amsterdam, The Netherlands

2
Are you using Cocoon?
3
Agenda
  • What is Cocoon?
  • A bit of history
  • Cocoon basics
  • Demo
  • Why Cocoon?
  • Future of Cocoon
  • QA

4
What is Cocoon all about?
  • Web development framework
  • Java XML
  • Separation of Concerns (SoC)
  • Content transformation
  • Dynamic multi-channel publishing
  • Inter-operability with other Java projects
    (Lucene, FOP, Spring, Hibernate, etc.)

5
History
  • Cocoon 1
  • Started in Jan. 1999 by Stefano Mazzocchi
  • Simple servlet for XSL styling of XML
  • Cocoon 2
  • Rewrite for performance and scalability
  • More than just XSL transformations

6
Connectivity
  • Collect data from multiple resources
  • Filesystem
  • SOAP webservice
  • LDAP
  • Databases (XML, SQL, Object)
  • WebDAV
  • XML feed
  • If that's not enough, use your current code in
    Cocoon from
  • JSF
  • JSP

7
Connectivity
8
Cocoon basics
  • Sitemap
  • Forms framework
  • Flow
  • Caching

9
Sitemap
  • XML configuration file
  • Request handling
  • Where everything comes together

10
Sitemap components
  • Pipelines
  • Matchers
  • Generators
  • Transformers
  • Serializers
  • Readers

ltmapsitemapgt ltmapcomponentsgt
ltmappipes/gt ltmapmatchers/gt
ltmapgenerators/gt ltmaptransformers/gt
ltmapserializers/gt ltmapreaders/gt
lt/mapcomponentsgt lt/mapsitemapgt
11
Pipelines
  • Contain matchers for (requested) URI
  • Example

12
Pipeline example
ltmappipelinegt ltmapmatch pattern"body-.html"
gt ltmapgenerate type"file" src"1.xml"/gt
ltmaptransform type"xslt" src"doc2html.xsl"/gt
ltmapserialize type"html"/gt
lt/mapmatchgt lt/mappipelinegt
13
Cocoon Forms framework
  • Create forms
  • Ajax / Dojo
  • Model
  • Template
  • Binding (bean or xml)

14
Go with the flow
  • Continuations
  • Rhino (Javascript)
  • JavaFlow

15
Caching
  • Think about how you design your web application.
  • Four kinds of caching
  • Apache mod_cache

16
Demo
  • Lets show some stuff!

17
Why Cocoon?
  • Powerful multi-channel publishing
  • Inter-operability
  • Active community
  • 20 active committers (60 overall)
  • 5500 mails on userlist in 2006
  • Annual GetTogether (100 people)

18
Future
  • Cocoon 2.2
  • Dependency management (M2)
  • Spring-based framework
  • Modularity
  • Cocoon 3?

19
Resources
  • Website
  • http//cocoon.apache.org/
  • Mailinglists
  • users_at_cocoon.apache.org
  • dev_at_cocoon.apache.org
  • Wiki
  • http//wiki.apache.org/cocoon/

20
QA?
  • Any questions?

21
Latest version
  • http//people.apache.org/jreijn/apachecon.html
  • Presentation
  • Demo sources
Write a Comment
User Comments (0)
About PowerShow.com