A new document has been created.
http://cocoon.zones.apache.org/daisy/documentation/662.html
Document ID: 662
Branch: main
Language: default
Name: The URICoplet
Document Type: Document
Created: 8/15/05 1:22:21 PM
Creator (owner): Helma
State: publish
Parts
=====
Content
-------
Mime type: text/xml
Size: 1920 bytes
Content:
<html>
<body>
<p>This section describes the URICoplet and the different possibilities to
configure it. For general configuration see the previous
<a href="daisy:602">section</a>.</p>
<h2>The Content Location and Parameter Handling</h2>
<p>A URICoplet uses a uri to fetch the coplet. This configuration is obviously a
configuration of the coplet class (and not of the coplet type) as each coplet
uses a different location.</p>
<p>The attribute <em>uri</em> takes the complete uri (as a string) to fetch the
content from:</p>
<pre>...
<coplet-data id="CZ Weblog" name="standard">
<title>CZ's Weblog</title>
<coplet-base-data>URICoplet</coplet-base-data>
<attribute>
<name>uri</name>
<value xsi:type="java:java.lang.String"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cocoon:/news/liverss?feed=http://radio.weblogs.com/0107211/rss.xml
</value>
</attribute>
</coplet-data>
...
</pre>
<p>If you're using the cocoon protocol to call internal pipelines, you can also
configure the boolean attribute <em>handleParameters</em> (default is false),
that defines if the coplet handles request parameters itself. This should be
used for coplets that process request parameters (have forms for example). In
that case, the parameters from the request are only forwarded to the coplet, if
they are meant for this coplet. All other coplets that use request parameters
don't get them in this request-response-cycle.</p>
<h2>Error Handling</h2>
<p>Usually, in the case of an error during rendering the content of a coplet, a
message is included in the coplet window instead of the coplet content. If you
want to customize this, you can specifiy the attribute <em>error-uri</em> that
should contain a valid uri that deliveres the content for a better error
message.</p>
</body>
</html>
Collections
===========
The document belongs to the following collections: documentation