You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Wyles <ro...@robinwyles.com> on 2002/10/09 09:03:46 UTC

Passing parameters to action-set

Hi All,

Apologies if this has been answered before, I can't find it in the
archives...

I am trying to pass a parameter to an action set, but I cannot seem to get
this to work. Should this be possible at all?

Here are some snippets from my sitemap:

[...]
<map:action-set name="nodePage">
   <map:act type="navigation">
      <map:parameter name="action" value="set" />
      <map:parameter name="nextPage" value="{process}" />
      <map:parameter name="onError" value="{process}" />
   </map:act>
</map:action-set>
[...]

<map:match pattern="home**">
    <map:act type="security">
        <map:parameter name="action" value="isLoggedOn" />
        <map:act set="nodePage">
            <map:parameter name="process" value="home" />
        </map:act>
        <map:generate type="file" src="docs/home.xml" />
        <map:call resource="XHTML" />
    </map:act>
</map:match>

[...]

Thanks in advance,

Robin Wyles


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Passing parameters to action-set

Posted by Kim Jelmoni <ki...@otego.com>.
Ryan Agler wrote:
> Try {../process} instead of {process}
> 

or better if you use 2.1 try with the input-modules (check in the 
cocoon.xconf which one is set):

{request:process}
{attribute:process}


> -----Original Message-----
> From: Robin Wyles [mailto:rob@robinwyles.com] 
> Sent: Wednesday, October 09, 2002 3:04 AM
> To: cocoon-users@xml.apache.org
> Subject: Passing parameters to action-set
> 
> Hi All,
> 
> Apologies if this has been answered before, I can't find it in the
> archives...
> 
> I am trying to pass a parameter to an action set, but I cannot seem to
> get
> this to work. Should this be possible at all?
> 
> Here are some snippets from my sitemap:
> 
> [...]
> <map:action-set name="nodePage">
>    <map:act type="navigation">
>       <map:parameter name="action" value="set" />
>       <map:parameter name="nextPage" value="{process}" />
>       <map:parameter name="onError" value="{process}" />
>    </map:act>
> </map:action-set>
> [...]
> 
> <map:match pattern="home**">
>     <map:act type="security">
>         <map:parameter name="action" value="isLoggedOn" />
>         <map:act set="nodePage">
>             <map:parameter name="process" value="home" />
>         </map:act>
>         <map:generate type="file" src="docs/home.xml" />
>         <map:call resource="XHTML" />
>     </map:act>
> </map:match>
> 
> [...]
> 
> Thanks in advance,
> 
> Robin Wyles
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
> 



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Passing parameters to action-set

Posted by Ryan Agler <ry...@hotmail.com>.
Try {../process} instead of {process}

-----Original Message-----
From: Robin Wyles [mailto:rob@robinwyles.com] 
Sent: Wednesday, October 09, 2002 3:04 AM
To: cocoon-users@xml.apache.org
Subject: Passing parameters to action-set

Hi All,

Apologies if this has been answered before, I can't find it in the
archives...

I am trying to pass a parameter to an action set, but I cannot seem to
get
this to work. Should this be possible at all?

Here are some snippets from my sitemap:

[...]
<map:action-set name="nodePage">
   <map:act type="navigation">
      <map:parameter name="action" value="set" />
      <map:parameter name="nextPage" value="{process}" />
      <map:parameter name="onError" value="{process}" />
   </map:act>
</map:action-set>
[...]

<map:match pattern="home**">
    <map:act type="security">
        <map:parameter name="action" value="isLoggedOn" />
        <map:act set="nodePage">
            <map:parameter name="process" value="home" />
        </map:act>
        <map:generate type="file" src="docs/home.xml" />
        <map:call resource="XHTML" />
    </map:act>
</map:match>

[...]

Thanks in advance,

Robin Wyles


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>