Use the propertyExceptions property to determine which form handler properties have exceptions associated with them, and to display a message near each field where an exception occurred. In the following example, the form includes a field where users are required to enter an email address. If no email address is entered, an exception is thrown and the error code for that exception is missingRequiredValue—the error code commonly used by form handlers when a required field is empty. The Switch bean renders the missingRequiredValue open parameter, which displays an error message immediately below the field.

<p>Email address:
<dsp:input bean="" size="32" type="text"
<dsp:droplet name="Switch">
  <dsp:param bean=""
  <dsp:oparam name="missingRequiredValue">
    <br/>You must provide an email address.

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices