[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-cocoon-users
Subject: Re: Accessing FormValidatorAction parameters in the sitemap
From: Christian Haul <haul () dvs1 ! informatik ! tu-darmstadt ! de>
Date: 2003-09-22 15:11:05
[Download RAW message or body]
On 22.Sep.2003 -- 02:36 PM, Derek Hohls wrote:
> Working with Cocoon 2.0.4 and JDK 1.3...
>
> I am trying to get the value of parameters used in
> a FormValidatorAction, to pass as new parameters
> further on in the sitemap.
>
> According to the Cocoon API docs, if I have :
>
> <map:act type="form-validator">
> <parameter name="descriptor" value="context://descriptor.xml">
> <parameter name="validate" value="username,password">
> </map:act>
>
> then:
>
> "This action returns null when validation fails, otherwise it provides
> all validated parameters to the sitemap via {name} expression."
>
>
> This means, from what I understand of this API, that I should
> be able to have:
>
> <map:match pattern="test/*">
> <map:generate type="file" src="test/{1}.xml" />
> <map:transform src="styles/page2html.xsl">
> <map:parameter name="username" value="{username}" />
> </map:transform>
> <map:serialize />
> </map:match>
And where exactly do you use the formvalidator?
> and expect to access the value of 'username' as parameter
> in the page2html.xsl transform - however, I always get a null value
> returned even when the validation is successful - is the above
> syntax incorrect?
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic