[ZPT] exceptions

Magnus Heino (Rivermen) magnus.heino@rivermen.se
Tue, 26 Jun 2001 14:41:52 +0200


How can I do this with ZPT? Catch an specific exception and read the error.

Code is from Formulator howto... great product btw.

      <dtml-try>
        <dtml-call "form.validate_all_to_request(REQUEST)">  
      <dtml-except FormValidationError>
        <ul>
        <dtml-in "error_value.errors">
          <li>
          <dtml-var "field.get_value('title')">:
          <dtml-var error_text>
          </li>
        </dtml-in>
        </ul>

      

--

/Magnus Heino