At 2:09 PM +0100 13/9/01, Jeremy Quinn wrote:
>Dear All,
>
>I am building a little login test.
>It is meaningless, because the login validation is hard-coded but it is a
>handy test for me, because I am just learning ;)
>
>Here is a snippet of my (sub) sitemap:
[snip]
> <map:act type="form-validator">
> <map:parameter name="descriptor"
>
>value="context://r2r/resources/validators/login-test.xml"/>
> <map:parameter name="validate-set"
>value="is-logged-in"/>
> <map:act type="session-propagator">
> <map:paramater name="username"
>value="{../username}"/>
> <map:paramater name="password"
>value="{../password}"/>
> </map:act>
[snip]
OK, sorry, I worked out why it was not working
1. wrote 'paramater' instead of 'parameter', yek!
2. the expression to pick up the parameter was wrong, but I don't
understand why
<map:parameter name="username" value="{../username}"/> did'nt work
<map:parameter name="username" value="{username}"/> worked
which puzzled me, I thought that because the 'session-propagator' action
was nested inside the 'form-validator' I would need to access the 'parent'
Map, I thought the 'form-validator' was the one that had put the parameters
onto the Map.
regards Jeremy
--
___________________________________________________________________
Jeremy Quinn Karma Divers
webSpace Design
HyperMedia Research Centre
<mailto:[EMAIL PROTECTED]> <http://www.media.demon.co.uk>
<phone:+44.[0].20.7737.6831> <pager:[EMAIL PROTECTED]>
---------------------------------------------------------------------
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]>