cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Created: XSP FAQs
Date Thu, 22 Sep 2005 13:58:06 GMT
A new document has been created.

Document ID: 716
Branch: main
Language: default
Name: XSP FAQs
Document Type: Document
Created: 9/22/05 1:57:52 PM
Creator (owner): Helma van der Linden
State: publish


Mime type: text/xml
Size: 589 bytes

<h2>How can I turn my XSPs into Generators to get better performance?</h2>

<p>Cocoon will compile your XSP files into Java classes the first time they are
requested. You can find them in your work directory, for example in
tomcat/work/.../org/apache/cocoon/www/my_xsp.class. Once your XSP file is
compiled, you can declare a new generator in your sitemap, for example:</p>

<pre>&lt;map:generator type="myXSP" src="org.apache.cocoon.www.my_xsp"/&gt;

<p>And then use it in a pipeline, for example:</p>

<pre>&lt;map:generate type="myXSP"/&gt;


The document belongs to the following collections: legacydocs

View raw message