org.infoglue.deliver.taglib.common
Class URLParameterTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.common.URLParameterTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class URLParameterTag
extends AbstractTag

This class implements the <common:parameter> tag, which adds a parameter to the parameters of the parent tag. Note! This tag must have a <common:urlBuilder> ancestor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
URLParameterTag()
          Default constructor.
 
Method Summary
protected  void addParameter()
          Adds the parameter to the ancestor tag.
 int doEndTag()
          Adds a parameter with the specified name and value to the parameters of the parent tag.
 void setName(java.lang.String name)
          Sets the name attribute.
 void setValue(java.lang.String value)
          Sets the value attribute.
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLParameterTag

public URLParameterTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Adds a parameter with the specified name and value to the parameters of the parent tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

addParameter

protected void addParameter()
                     throws javax.servlet.jsp.JspException
Adds the parameter to the ancestor tag.

Throws:
javax.servlet.jsp.JspException - if the ancestor tag isn't a url tag.

setName

public void setName(java.lang.String name)
             throws javax.servlet.jsp.JspException
Sets the name attribute.

Parameters:
name - the name to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setValue

public void setValue(java.lang.String value)
              throws javax.servlet.jsp.JspException
Sets the value attribute.

Parameters:
value - the value to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating value parameter.


Copyright © 2005 InfoGlue.org All Rights Reserved.