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

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

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


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