cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barbara Post" <bab...@ifrance.com>
Subject Re: using seletor to test 2 or more request parameter
Date Fri, 30 Aug 2002 07:23:29 GMT
nest 2 request-parameter... I did that, so I had 4 parts. indeed code grows
but this is the only real way to do this...

<map:select type="request-parameter">
       <map:parameter name="parameter-name" value="what_you_want"/>
map:when (test on first param)
<map:select type="request-parameter">
       <map:parameter name="parameter-name" value="what_you_want2"/>

map:when (test on second param)

map:otherwise
</map:select
</map:when
<map:otherwise (first param)
</
</ ...
----- Original Message -----
From: "apurva zaveri" <azaveri@yahoo.com>
To: <cocoon-users@xml.apache.org>
Sent: Friday, August 30, 2002 7:44 AM
Subject: using seletor to test 2 or more request parameter


> I have a selector in pipeline
>
>           <map:select type="request-parameter">
>             <map:parameter name="parameter-name"
> value="cocoon-xmlform-view"/>
>             <map:when test="confirm">
>                        <map:redirect-to
> uri="PropForSale(1)"/>
>            </map:when>
>           </map:select>
>
> This works just fine, but this tests only one request
> parameter....if someone wants to test 2 or more
> parameter..........how is that done?
>
> I also tried something like :
>
>           <map:select type="request-parameter">
>             <map:parameter name="parameter-name"
> value="cocoon-xmlform-view"/>
> <!--            <map:parameter name="parameter-name"
> value="cocoon-action-next"/>  -->
>             <map:when test="confirm">   <!-- like how
> to test 2 request parameter condition? -->
>
>
>                   <map:select
> type="request-parameter">
>                     <map:parameter
> name="parameter-name" value="cocoon-action-next"/>
>                     <map:when test="Next">  -->
>                         <map:redirect-to
> uri="PropForSale(1)"/>
>                    </map:when>
>                   </map:select>
>
>             </map:when>
>           </map:select>
>
> does not work.
>
>
> -Apurva Zaveri
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message