cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 321...@gmail.com
Subject How does the captcha valid. in forms work?
Date Mon, 07 Aug 2006 08:54:26 GMT
Hello,
I know how to put in in the form and make it work, but what I do not
understand is how it works, especially whats in the sitemap

you put s.th like that in your form:
<fd:captcha id="captcha" required="true" length="5">
       <fd:datatype base="string"/>
            <fd:validation>
                <fd:captcha/>
            </fd:validation>
 </fd:captcha>

sitemap:
<map:match pattern="captcha-*.jpg">
      <map:generate type="jx" src="documents/xml/captcha-image.xml">
        <map:parameter name="capt" value="{session-attr:captcha-{1}}"/>
      </map:generate>
      <map:serialize type="svg2jpeg"/>
  </map:match>

does it mean this: <fd:captcha id="captcha" required="true" length="5">
calls that: <map:match pattern="captcha-*.jpg">
and what about this entry: value="{session-attr:captcha-{1}}" ??

A description of the whole process would be great....
Thank you
Marco

Mime
View raw message