private String getHistoryString() { StringBuffer buff = new StringBuffer(); ArrayList history = session.getCommands(); buff.append("<table cellspacing=0 cellpadding=0>"); buff.append("<tr><th></th><th>Command</th></tr>"); for (int i = history.size() - 1; i >= 0; i--) { String sql = (String) history.get(i); buff.append("<tr><td>"); buff.append("<a href=\"getHistory.do?id="); buff.append(i); buff .append("&jsessionid=${sessionId}\" target=\"h2query\" ><img width=16 height=16 src=\"ico_write.gif\" onmouseover = \"this.className ='icon_hover'\" onmouseout = \"this.className ='icon'\" class=\"icon\" alt=\"${text.resultEdit.edit}\" title=\"${text.resultEdit.edit}\" border=\"1\"/></a>"); buff.append("</td><td>"); buff.append(PageParser.escapeHtml(sql)); buff.append("</td></tr>"); } buff.append("</table>"); return buff.toString(); }