Hallo.
I am trying to use cinclude transformer with the POST method, but it only fires the
GET method...
I am using Cocoon 2.1 on Linux.
My Sitemap entry:
<map:match pattern="cinclude">
<map:generate src="xml/cinclude.xml" />
<map:transform type="cinclude" />
<map:serialize type="xml"/>
</map:match>
Here is my cinclude.xml
<cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0"
ignoreErrors="false">
<cinclude:src>cocoon:/test.xsp</cinclude:src>
<!-- This is an optional configuration block -->
<cinclude:configuration>
<!-- For example if you want to make a HTTP POST -->
<cinclude:parameter>
<cinclude:name>method</cinclude:name>
<cinclude:value>POST</cinclude:value>
</cinclude:parameter>
</cinclude:configuration>
<!-- The following are optional parameters appended to the URI -->
<cinclude:parameters>
<cinclude:parameter>
<cinclude:name>a name</cinclude:name>
<cinclude:value>a value</cinclude:value>
</cinclude:parameter>
<!-- more can follow -->
</cinclude:parameters>
</cinclude:includexml>
The test.xsp which is called by the transformer
<p>
<xsp-request:get-method />
</p>
<p>
<xsp-request:get-content-length />
</p>
and the result:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- This is an optional configuration block -->
<!-- For example if you want to make a HTTP POST -->
<!-- The following are optional parameters appended to the URI -->
<!-- more can follow -->
<page xmlns:cinclude="http://apache.org/cocoon/include/1.0"
xmlns:xsp="http://apache.org/xsp"
xmlns:jpath="http://apache.org/xsp/jpath/1.0"
xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<p>
GET
</p>
<p>
-1
</p>
</page>
______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]