cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Montier Patrick" <patrick.mont...@easance.com>
Subject form-validation and utf-8
Date Wed, 03 Apr 2002 15:57:32 GMT

Hi,

I can't resolve my problem : i try to make the form-validation works with
utf-8 data, it only works with Iso-????

In my sitemap.xmap, i try the form-encoding as described in an email but
it's still the same, when login or password input is in Utf-8 caracters, the
form-validator reject.


     <map:match pattern="asp*/*/do-login">
        <!-- first validate whether submitted values are ok -->
        <map:act type="form-validator">
          <map:parameter name="descriptor"
value="context://test/descriptors/params.xml"/>
          <map:parameter name="validate" value="login,password"
form-encoding="UTF-8"/>
          <!-- now try to log in -->
          <map:act type="db-authenticator">
            <map:parameter name="descriptor"
value="context://test/descriptors/auth.xml"/>
            <!-- now go to protected area -->
            <map:redirect-to uri="login_ok.htm"/>
          </map:act>
        </map:act>
        <!-- something was wrong, try it again -->
        <map:redirect-to uri="login_nok.htm"/>
      </map:match>

Any idea ?

Thanks

Patrick


---------------------------------------------------------------------
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