FileDocCategorySizeDatePackage
ParamTag.javaAPI DocExample1717Thu Jun 28 16:14:16 BST 2001com.ora.jsp.tags.generic

ParamTag

public class ParamTag extends TagSupport
This class is a custom action intended to be used in the body of an EncodeURLTag or a RedirectTag. It adds the specified parameter name and value to it's parent's list of parameters. It can be used in the body of any tag handler that implements the ParamParent interface.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
private String
name
private String
value
Constructors Summary
Methods Summary
public intdoEndTag()
Adds the parameter name and the URL encoded value to the parent's parameter list.

        Tag parent = findAncestorWithClass(this, ParamParent.class);
        if (parent == null) {
            throw new JspException("The param action is not " +
                "enclosed by a supported action type");
        }
        ParamParent paramParent = (ParamParent) parent;
        paramParent.setParam(name, URLEncoder.encode(value));
        return EVAL_PAGE;
    
public voidrelease()
Releases all instance variables.

        name = null;
        value = null;
        super.release();
    
public voidsetName(java.lang.String name)
Sets the name attribute.

param
name the parameter name

        this.name = name;
    
public voidsetValue(java.lang.String value)
Sets the value attribute from a String.

param
value the parameter String value

        this.value = value;