blob: a11e48f50f35d082584147d45bde44bdecf436d1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "../../dtd/document-v10.dtd">
<document>
<header>
<title>Advanced Control Flow</title>
<authors>
<person name="Ovidiu Predescu" email="ovidiu@apache.org"/>
<person name="Christopher Oliver" email="coliver@apache.org"/>
</authors>
</header>
<body>
<s1 title="Flowscript-aware Generators and Form Frameworks">
<p>The second argument to <link href="api.html#sendPage"><code>cocoon.sendPage()</code></link> and
<link href="api.html#sendPageAndWait"><code>cocoon.sendPageAndWait()</code></link> is a context object,
which can be a simple dictionary with values that need to be displayed by the page. More
generally any Java or JavaScript object can be passed here, as long as the necessary <em>get</em>
methods for the important values are provided.</p>
<p>The page specified by the URL is processed by the sitemap, using the normal sitemap rules.</p>
<p>Several Cocoon generators are provided that allow you to access the context object and inject
its values into a pipeline. Currently, these are the
<link href="jxtemplate.html">JXTemplate Generator</link>,
<link href="jpath.html">JPath XSP Logic Sheet</link> and
<link href="velocity.html">Velocity Generator</link>.
</p>
<p>
In addition, Cocoon provides several higher-level frameworks to create single and multi-page forms that can be used with your Flowscripts. Currently, these are <link href="jxforms.html">JXForms</link> and <link href="woody.html">Woody</link>.
</p>
</s1>
</body>
</document>