On 16.Apr.2002 -- 10:24 AM, Niket Anand wrote:
> I want to return map in act() method as
> Map siteparams=new HashMap();
> siteparams("validate", true);
> return siteparams;
> 
> How can I use variable "validate" in sitemap such that If it is true then redirect 
>to resource1 else redirect to resource2.
> How can I deal it like if-else condition like <xsl:if test=""> 

Please have a look at the document about actions. They provide such a
mechanism in that the code nested is only included in your pipeline if
the action succeeds.

Other possibilities include selectors (see document on matchers and
selectors for more info).

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    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/faqs.html>

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

Reply via email to