You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthew Hailstone <ma...@waterford.org> on 2002/06/15 00:11:31 UTC

request-parameter exist

Is there any way to determine whether a particular request-parameter
exists in the sitemap's pipeline?

ex:

        <map:select type="request-parameter">
          <map:parameter name="parameter-name" value="test-name"/>

<!-- I know I'm probably hashing the syntax. -->

          <map:when test="!exist()">
            <map:redirect-to session="true"
uri="subsiteroot/doesnotexist"/>
          </map:when>
          <map:otherwise>
            <map:redirect-to session="true"
uri="subsiteroot/doesexist"/>
          </map:otherwise>
        </map:select>

Thanks,

Matthew

---------------------------------------------------------------------
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: request-parameter exist

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 14.Jun.2002 -- 04:11 PM, Matthew Hailstone wrote:
> Is there any way to determine whether a particular request-parameter
> exists in the sitemap's pipeline?

Yes, look at the RequestParameterExistsAction. It is used in the mod-db
example BTW.

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


---------------------------------------------------------------------
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>