org.dasein.net.jsp.util
Class KeyValueTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.dasein.net.jsp.util.KeyValueTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class KeyValueTag
extends TagSupport

This class is used to store key-value pairs in the JSP. If just the var attribute is supplied, a new Map is created and set to the incoming var value. If a varResult, key, and map are provided, the value matching that key is set to the varResult field. If map, key and value are provided, the key and value are added to the incoming map. User: james Date: Jan 8, 2008 Time: 11:04:41 AM

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
KeyValueTag()
           
 
Method Summary
 int doEndTag()
           
 void setKey(String str)
           
 void setMap(String str)
           
 void setValue(String str)
           
 void setVar(String str)
           
 void setVarResult(String str)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValueTag

public KeyValueTag()
Method Detail

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport

setKey

public void setKey(String str)
            throws JspException
Throws:
JspException

setMap

public void setMap(String str)
            throws JspException
Throws:
JspException

setValue

public void setValue(String str)
              throws JspException
Throws:
JspException

setVar

public void setVar(String str)
            throws JspException
Throws:
JspException

setVarResult

public void setVarResult(String str)
                  throws JspException
Throws:
JspException


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.