Announcement Announcement Module
Collapse
No announcement yet.
Return and Show global message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Return and Show global message

    Hi,

    here is the way i show message for a specific bean in a jsp :

    jsp

    <!--MESSAGE GLOBAUX-->
    <spring:hasBindErrors name="specificbeanname">
    <c:if test="${errors.globalErrorCount>0}">
    <script language="javascript">
    errors='<c:forEach var="error" items="${errors.globalErrors}">\n';
    errors+='*<spring:message code="${error.code}" /></c:forEach>';
    alert(errors);
    </script>
    </c:if>
    </spring:hasBindErrors>

    But now i like to send to the jsp a global message not for the specific bean.

    How can i catch it if i use this :

    In controller
    errors.reject(message, null,null);

    Thanks,

    Fabien
Working...
X