public String displayErrors(String pathPrefix) {

        if (pathPrefix == null) {
            pathPrefix = "";
        }
        StringBuffer html = new StringBuffer(512);
        html.append("<table border='0' cellpadding='5' cellspacing='0' style='width: 100%; height: 100%;'>");
        html.append("\t<tr>");
        html.append("\t\t<td style='vertical-align: middle; height: 100%;'>");
        html.append(getHtmlPart("C_BLOCK_START", "Error"));
        html.append("\t\t\t<table border='0' cellpadding='0' cellspacing='0' style='width: 100%;'>");
        html.append("\t\t\t\t<tr>");
        html.append("\t\t\t\t\t<td><img src='").append(pathPrefix).append("resources/error.png' border='0'></td>");
        html.append("\t\t\t\t\t<td>&nbsp;&nbsp;</td>");
        html.append("\t\t\t\t\t<td style='width: 100%;'>");

        Iterator<String> iter = getErrors().iterator();
        while (iter.hasNext()) {
            String msg = iter.next();
            html.append("\t\t\t\t\t\t");
            html.append(msg);
            html.append("<br/>");
        }

        html.append("\t\t\t\t\t</td>");
        html.append("\t\t\t\t</tr>");
        html.append("\t\t\t</table>");
        html.append(getHtmlPart("C_BLOCK_END"));
        html.append("\t\t</td>");
        html.append("\t</tr>");
        html.append("</table>");
        return html.toString();
    }
public String displayErrors ( String pathPrefix ) { if ( pathPrefix == null ) { pathPrefix = "" ; } StringBuffer html = new StringBuffer ( 512 ) ; html . append ( "<table border='0' cellpadding='5' cellspacing='0' style='width: 100%; height: 100%;'>" ) ; html . append ( "\t<tr>" ) ; html . append ( "\t\t<td style='vertical-align: middle; height: 100%;'>" ) ; html . append ( getHtmlPart ( "C_BLOCK_START" , "Error" ) ) ; html . append ( "\t\t\t<table border='0' cellpadding='0' cellspacing='0' style='width: 100%;'>" ) ; html . append ( "\t\t\t\t<tr>" ) ; html . append ( "\t\t\t\t\t<td><img src='" ) . append ( pathPrefix ) . append ( "resources/error.png' border='0'></td>" ) ; html . append ( "\t\t\t\t\t<td>&nbsp;&nbsp;</td>" ) ; html . append ( "\t\t\t\t\t<td style='width: 100%;'>" ) ; Iterator < String > iter = getErrors ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { String msg = iter . next ( ) ; html . append ( "\t\t\t\t\t\t" ) ; html . append ( msg ) ; html . append ( "<br/>" ) ; } html . append ( "\t\t\t\t\t</td>" ) ; html . append ( "\t\t\t\t</tr>" ) ; html . append ( "\t\t\t</table>" ) ; html . append ( getHtmlPart ( "C_BLOCK_END" ) ) ; html . append ( "\t\t</td>" ) ; html . append ( "\t</tr>" ) ; html . append ( "</table>" ) ; return html . toString ( ) ; }
Returns html code to display the errors occurred.<p>

@param pathPrefix to adjust the path

@return html code