There are two methods you can use to add messages to the messaging UI from a form handler:
- Add a servlet bean exception with a message to the form handler by invoking the - addFormException()method on the form handler. The message property on the added exception will be displayed by the UI
- Create a user message bean ( - atg.web.messaging.UserMessage) directly and add it to the messaging slot using the- MessageTools- addMessage()method
The messaging UI will also display unhandled exceptions from the form handlers and server-side business logic.

