<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.action.ActionMessages" %>         

<%
ActionMessages actionErrors = (ActionMessages)request.getAttribute(Globals.ERROR_KEY);
if(actionErrors != null && actionErrors.size() > 0)
{
%>

<table width="100%" cellpadding="0" cellspacing="0" class="moduleShell" border="0">
  <tr>
    <td>
      <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
        <tr>
          <td class="errorModuleShellTableBody">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
              <tr>
                <td class="errorModuleBox"><a id="contentAreaLink" href="#ContentArea" class="initfocus"><img alt="Errors" src="/esr/images/spacer.gif" width="25" height="17" border="0"/></a></td>
                <td class="errorModuleHeadline" style="padding-left: 7">
                   <a name="ContentArea" id = "ContentArea"/>  
                   <bean-el:message key="text.error"/></td>
              </tr>
            </table>
            <ul>
              <fw:messages id="error">
                <bean-el:message key="errors.prefix" />
                <c:out value="${error}" />
                <bean-el:message key="errors.suffix" />
              </fw:messages>
            </ul>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr height="10"><td></td></tr> <!-- row spacing -->
</table>

<% } %>
