You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roman Hrivik <hr...@isdd.sk> on 2004/02/09 13:06:23 UTC
woody - sendpage - get sended parameters in sitemap
Hi all,
I'm trying get bizdata parameters sended with function
cocoon.sendPage("registration-success-pipeline", bizdata);
from sitemap. Because I need to pass this data to our custom EJB generator.
I findout that bizdata is stored in request attribute named
"cocoon.flow.context"
my question is: How can I access this request attributes ?
I tryed JXPathMetaModule with RequestAttributeModule
but I don't know how to configure it properly - there is no sample
my current cocoon.xconf for that is:
<component-instance
class="org.apache.cocoon.components.modules.input.RequestAttributeModule"
logger="core.modules.input" name="request-test">
<parameter>mytest</parameter>
</component-instance>
where mytest is attribute name in request-attribute space
<component-instance
class="org.apache.cocoon.components.modules.input.JXPathMetaModule"
logger="core.modules.input" name="rtest">
<input-module name="request-test"/>
</component-instance>
Do you know what I'm doing wrong ?
Thank you
Roman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: woody - sendpage - get sended parameters in sitemap
Posted by Yatin Shah <no...@kripa.com>.
Roman Hrivik,
HI.
I had similar requirement and the solution for it was posted on the
dev-list.
Here the solution:
Following works in the sitemap.
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
value="{flow-attribute:flowRequest/ver}"/>
<map:when test="POP" >
</map:when>
<map:otherwise>
</map:otherwise>
</map:select>
In the flowscript:
I define a JS object called flowRequest with data member ver and invoke
the sendPageAndWait command as follows:
cocoon.sendPageAndWait("XMLcollector", { "flowRequest":flowRequest});
Setting ver to "POP" triggers the test="POP" part of the select logic.
Cheers
-Yatin
wrote:
>Hi all,
>
>I'm trying get bizdata parameters sended with function
>
>cocoon.sendPage("registration-success-pipeline", bizdata);
>
>from sitemap. Because I need to pass this data to our custom EJB generator.
>
>I findout that bizdata is stored in request attribute named
>"cocoon.flow.context"
>
>my question is: How can I access this request attributes ?
>
>I tryed JXPathMetaModule with RequestAttributeModule
>but I don't know how to configure it properly - there is no sample
>my current cocoon.xconf for that is:
><component-instance
>class="org.apache.cocoon.components.modules.input.RequestAttributeModule"
>logger="core.modules.input" name="request-test">
> <parameter>mytest</parameter>
></component-instance>
>
>where mytest is attribute name in request-attribute space
>
><component-instance
>class="org.apache.cocoon.components.modules.input.JXPathMetaModule"
>logger="core.modules.input" name="rtest">
> <input-module name="request-test"/>
></component-instance>
>
>Do you know what I'm doing wrong ?
>
>
>
>Thank you
>
>Roman
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org