StringBuffer html = new StringBuffer("<table");
if (dynamicAttrs != null) {
Iterator i = dynamicAttrs.keySet().iterator();
while (i.hasNext()) {
String name = (String) i.next();
String value = dynamicAttrs.get(name).toString();
html.append(" ").append(name).append("=\"").append(value).
append("\"");
}
}
JspWriter out = getJspContext().getOut();
out.println(html.toString());
// Generate rows from product list
out.println("</table>");