BA#004 - How to display error in JSP on Formhandler Submission in ATG?

Ans. You can use ErrorMessageForEachDroplet and pass the (optional) parameter "exceptions" with the value FormHandler.exceptions
The OPEN parameters rendered are: OUPUT and EMPTY.
The OUTPUT parameter rendered is: message
Example:

<dsp:droplet name="/atg/dynamo/droplet/ErrorMessageForEach">
       <dsp:param name="exceptions" bean="YourFormHandler.formExceptions"/>
    <dsp:oparam name="output">
          <b>
          <dsp:valueof param="message"/>
          </b>
          <p>
      </dsp:oparam>
</dsp:droplet>

For more details on FormHandlers and how they work, you can have a look at ART#113 - Formhandlers

Other ATG Questions (General Topics):-

No comments:

Post a Comment

Subscribe

Get All The Latest Updates Delivered Straight Into Your Inbox For Free!

Flickr