com.ora.jsp.tags.generic
Class ParamTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.ora.jsp.tags.generic.ParamTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ParamTag
extends javax.servlet.jsp.tagext.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.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  java.lang.String name
           
private  java.lang.String value
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext, parent, values
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ParamTag()
           
 
Method Summary
 int doEndTag()
          Adds the parameter name and the URL encoded value to the parent's parameter list.
 void release()
          Releases all instance variables.
 void setName(java.lang.String name)
          Sets the name attribute.
 void setValue(java.lang.String value)
          Sets the value attribute from a String.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value
Constructor Detail

ParamTag

public ParamTag()
Method Detail

setName

public void setName(java.lang.String name)
Sets the name attribute.
Parameters:
name - the parameter name

setValue

public void setValue(java.lang.String value)
Sets the value attribute from a String.
Parameters:
value - the parameter String value

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Adds the parameter name and the URL encoded value to the parent's parameter list.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport

release

public void release()
Releases all instance variables.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport