FileDocCategorySizeDatePackage
ParamSupport.javaAPI DocGlassfish v2 API3789Sat May 05 19:17:54 BST 2007org.apache.taglibs.standard.tag.common.xml

ParamSupport

public abstract class ParamSupport extends javax.servlet.jsp.tagext.BodyTagSupport

Support for tag handlers for <param>, the XML parameter subtag for <transformt<.

see
TransformSupport
author
Shawn Bayern

Fields Summary
protected String
name
protected Object
value
Constructors Summary
public ParamSupport()

	super();
	init();
    
Methods Summary
public intdoEndTag()

	Tag t = findAncestorWithClass(this, TransformSupport.class);
	if (t == null)
	    throw new JspTagException(
		Resources.getMessage("PARAM_OUTSIDE_TRANSFORM"));
	TransformSupport parent = (TransformSupport) t;

	Object value = this.value;
	if (value == null) {
            if (bodyContent == null || bodyContent.getString() == null)
                value = "";
            else
                value = bodyContent.getString().trim();
        }
	parent.addParameter(name, value);
	return EVAL_PAGE;
    
private voidinit()

	name = null;
	value = null;
    
public voidrelease()

	init();