cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: form-validation
Date Tue, 16 Apr 2002 06:37:27 GMT
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
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/faqs.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