FileDocCategorySizeDatePackage
ProdTableTag.javaAPI DocExample1256Tue Feb 28 11:34:06 GMT 2006com.ora.jsp.tags.xmp

ProdTableTag

public class ProdTableTag extends SimpleTagSupport implements DynamicAttributes

Fields Summary
private List
prods
private Map
dynamicAttrs
Constructors Summary
Methods Summary
public voiddoTag()

        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>");
    
public voidsetDynamicAttribute(java.lang.String uri, java.lang.String localName, java.lang.Object value)

        if (dynamicAttrs == null) {
            dynamicAttrs = new HashMap();
        }
        dynamicAttrs.put(localName, value);
    
public voidsetProds(java.util.List prods)

        this.prods = prods;