Scratchpad Samples

Back

Back - to Cocoon Samples main page
Back - to Cocoon Blocks Samples main page

Betwixt

Example - Show the usage of the Betwixt Transformer

Castor

CastorTransformer - Show the usage of the Castor Transformer.

Groovy Flow Engine

Groovy - An experimental Groovy Flow Engine based on the JavaFlow Engine

Intercepted Flow

Example - Show the usage intercepted JavaScript flow functions

Flow Action

Example - This sample simply calls the flow action. Look at the console for the output.

Image-Based Authentication

Image Auth - An example of image-based authentication using the Flow layer. Make sure the Batik block is included before testing this sample.

Jelly

Test 1 - A test of the Jelly generator - you have to download and install the jelly.jar first!
Test 2 - A test of the Jelly generator - you have to download and install the jelly.jar first!

Module Source

Request URI - Use a source that reads from a request URI.
Text field - Use a source that reads from a input text field.
XML text field - Read XML data from a text field. Also demonstrates the use of input from multi part mime posts and require that uploads are enabled in web.xml.

Othello

Example - Template based static web site.

Sitemap Viewer

Sitemap Viewer - Experimental sitemap viewer

WebServices with Flowscript

Random quote webservice - Remote service returns an xsd string that is mapped to a Javascript string.
(use: http://www.boyzoid.com/comp/randomQuote.cfc?wsdl)
Morgage rate - Remote service returns an xsd complex type that is mapped to a Javascript object.
(use: http://www.webservicex.net/MortgageIndex.asmx?WSDL)

XModule Source

Create - Populate a session attribute "test" with a dom tree created from the file "test.xml".
Read - Read xml from the session attribute "test" at the XPath position "page/body".
Insert - Insert a dom tree created from the file "insert.xml", at the XPath position "page/body/p" in the session attribute "test".
Delete - Delete the content at theXPath position "page/body/p" in the session attribute "test".