adaptive form || custom message after custom,serverside validation fails
I have a form being POST-ed to a custom end point which is implemented using a sling servlet. In this servlet, there is some backend validation done, based on which is we need to ask users to fill some data / fields again, if it does not meet business requirement.
But when the user is shown the SAME form again, there is a custom message need to be displayed. e.g "Value XXXXX is not a valid for this user."
Question - How do I send that information from slingservlet as response so that it is available in form ? Which jsp/js files do I modify ?
/Kanwal