<% if (request.getAttribute("struts.valueStack") != null) { %>
<%-- ActionError Messages - usually set in Actions --%>
<div class="messages" id="iMessages">
    <div class="Modal">
        <s:if test="hasActionErrors()">
            <div class="feedback error">
                <ul>
                    <s:iterator value="actionErrors">
                        <li><s:property/></li>
                    </s:iterator>
                </ul>
            </div>
        </s:if>
        <% } %>
        <%-- Alert Messages --%>
        <c:if test="${not empty alerts}">


            <div class="feedback">
                <ul>
                    <c:forEach var="msg" items="${alerts}">
                        <li><c:out value="${msg}" escapeXml="false"/></li>
                    </c:forEach>
                </ul>
            </div>

            <c:remove var="alerts" scope="session"/>
        </c:if>
        <%-- Success Messages --%>
        <c:if test="${not empty messages}">
            <div class="feedback notification">
                <ul>
                    <c:forEach var="msg" items="${messages}">
                        <li><c:out value="${msg}" escapeXml="false"/></li>
                    </c:forEach>
                </ul>
            </div>
            <c:remove var="messages" scope="session"/>
        </c:if>
    </div>
</div>