<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  ~ This file is part of DebGen Biobank Software developed by ASTRID Research.
  ~ All rights reserved. Reproduction, modification, use or disclosure
  ~ to third parties without express authority is forbidden.
  ~
  ~ Copyright ASTRID Research Inc., Hungary, 2009-2011.
  ~
  ~ ASTRID Research
  ~ Headquaters: Csapo utca 42. Debrecen H-4029 HUNGARY
  ~ Phone: +36-52-533-173        Fax: +36-52-533-174
  ~ Web: http://www.astrid.hu    E-mail: info@astrid.hu
  ~
  ~ Project name: DebGen Biobank Software project.
  ~ URLS:
  ~ Developers: Istvan Zoltan Nagy (istvan.nagy@astrid.hu)
  --%>

<c:if test="${not empty actionParameter.errorMessage}">
    <table border="0" width="99%" cellspacing="3" cellpadding="0">
        <tbody>
            <tr>
                <td valign="top" width="30">
                    <img src="pics/icons/error.png" width="24" height="24" alt="ERROR"/>
                </td>
                <td valign="middle">
                    <div id="showembedederror" class="showembeded">
                        <c:if test="${actionParameter.exception.type eq 0}">
                            <fmt:message key="${actionParameter.exception.normalMessage}" />
                        </c:if>
                        <c:if test="${actionParameter.exception.type eq 1}">
                            <fmt:message key="${actionParameter.exception.leftMessage}" />${actionParameter.exception.middle}<fmt:message key="${actionParameter.exception.rightMessage}" />
                        </c:if>
                        <c:if test="${actionParameter.exception.type eq 2}">
                            <fmt:message key="${actionParameter.exception.messageText}" />
                            <c:forEach items="${actionParameter.exception.properties}" var="item">
                                <fmt:message key="${item}" />,
                            </c:forEach>
                        </c:if>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</c:if>
