[Zope] Re: [Zope-DB] problem with "required" parameter

Dieter Maurer dieter@handshake.de
Mon, 1 Apr 2002 21:08:38 +0200


guido tobar writes:
 > If I use a dtml method called "first" with this code:
 >   <form action="second" method="POST">
 >   <input name="animal:required">
 >   </form>
 >  Too many errors encountered; the rest of the message
 > is ignored:
 >  
 >  Now, I don't know How do  I to catch the error in the
 >  dtml called "second"
 >    <dtml-try>
 >      the name of animal is:<dtml-var animal>
 >    <dtml-except EMPTY> 
 >      ERROR you write a empty string
 >    </dtml-try>
You need to be more specific:

  When is the error reported (during rendering of the form or the action)

  What is the traceback (including the "Error type", "Error value" headers).


Dieter