You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Giuseppe Bonelli <gi...@tiscali.it> on 2002/10/17 20:22:10 UTC

using more than one request parameter

Hi cocooners,

this is probably a simple question, but I didn't find anything in the docs and/or mail archives.

I have a form with 2 submit buttons and I successfully use the request parameter selector to fire a pipeline based on the submit buttons values.

The problem is that I need to use also another value posted by the form as an input box. 

In other words, how can I use in the pipeline more than one request parameter ?

Thanks in advance for any pointer.

--peppo



---------------------------------------------------------------------
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: using more than one request parameter

Posted by Lee V <ld...@hotmail.com>.
Have a look at this. 

 

<map:pipeline>   

   <map:match pattern="some_pattern">

   <map:act type="request">

    <map:parameter name="parameters" value="true"/>

     <map:aggregate element="html">

      <map:part src="cocoon:/oooh{someParamName1}"/>

      <map:part src="cocoon:/aaah{someParamName2}"/>

     </map:aggregate>  

    </map:act>

    <map:transform src="context://mystylesheets/test.xsl">

     <map:parameter name="use-request-parameters" value="true"/>

    </map:transform>    

   <map:serialize type="html"/>

   </map:match>

  </map:pipeline>

 

I hope this helps.

 

- Lee

 

 

-----Original Message-----
From: Giuseppe Bonelli [mailto:giuseppe.bonelli@tiscali.it] 
Sent: October 17, 2002 1:22 PM
To: Cocoon-Users@Xml. Apache. Org
Subject: using more than one request parameter

 

Hi cocooners,

 

this is probably a simple question, but I didn't find anything in the
docs and/or mail archives.

 

I have a form with 2 submit buttons and I successfully use the request
parameter selector to fire a pipeline based on the submit buttons
values.

 

The problem is that I need to use also another value posted by the form
as an input box. 

 

In other words, how can I use in the pipeline more than one request
parameter ?

 

Thanks in advance for any pointer.

 

--peppo

 

 

 

---------------------------------------------------------------------

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>