Do you mean howto access url parameters in the pipeline? Using
InputModule (see: http://wiki.apache.org/cocoon/InputModules), e.g.


Zhu Di wrote:
> hello all, I get some trouble when try to transmit parameter to <map:act>
>  
> when I call a URL, like
> http://localhost/cocoon/exercise/test/en/get.xml?param1=**&param2
> <http://localhost/cocoon/exercise/test/en/get.xml?param1=**&param2>=**
>  
> < map:match pattern="/*/*/*/get.xml">
>   <map:act type="serverpages" src="file:///C:/test.xml">
>     <map:parameter name="data" value="/{1}/"/>
>     <map:parameter name="testcase" value="{------}"/> 

      <map:parameter name="xxx" value="{request-param:param1}"/>

>     <map:generate src="cocoon://{1}/framed/{2}/{3}/get.html"/>
>     <map:serialize type="html"/>
>   </map:act>
>   <map:generate src="failure.html"/>
>   <map:serialize type="html"/>
> </map:match >
>  
> but now the problem is, for the value of parameter "testcase", the only
> way to get the value is from another pipeline, which process those
> request parameters (param1, param2). I try to add this process before
> "act", but it couldn't work, because I have 2 "generate". then How can
> I transmit the parame value to <map:act>.  

Is that, what you need?

Zbigniew

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to