org.dasein.net.jsp.util
Class EnumNameTag

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

public class EnumNameTag
extends TagSupport

The geniuses at Sun made it so you cannot access the Enum.name() value from JSTL. This tag fixes that problem.

Last modified: $Date: 2007/03/24 14:49:53 $

Version:
$Revision: 1.3 $
Author:
George Reese
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
EnumNameTag()
           
 
Method Summary
 int doEndTag()
           
 void setEnum(String val)
           
 void setVar(String v)
           
 
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

EnumNameTag

public EnumNameTag()
Method Detail

doEndTag

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

setEnum

public void setEnum(String val)
             throws JspException
Throws:
JspException

setVar

public void setVar(String v)


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.