com.germinus.easyconf.taglib
Class PropertyTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.germinus.easyconf.taglib.PropertyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class PropertyTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Read a configuration property and expose it as a page variable and attribute Examples of use: >%@ taglib uri="/WEB-INF/tld/easyconf.tld" prefix="easyconf" %> >easyconf:property id="registration_list" component="registration" property="registration.list" type="java.util.List"/> >logic:iterate id="item" name="registration_list"> >bean:write name="item"/> >br/> >/logic:iterate> >easyconf:property id="registration_disabled" component="registration" property="registration.disabled"/> >logic:equal name="registration_disabled" value="true"> The registration is disabled >/logic:equal>

See Also:
Serialized Form

Field Summary
protected  java.lang.String component
           
protected  java.lang.String defaultValue
           
protected  java.lang.String id
           
protected  java.lang.String property
           
protected  java.lang.String selector1
           
protected  java.lang.String selector2
           
protected  java.lang.String selector3
           
protected  java.lang.String selector4
           
protected  java.lang.String selector5
           
protected  java.lang.String type
           
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
PropertyTag()
           
 
Method Summary
 int doAfterBody()
          Save the body content of this tag (if any), or throw a JspException if the value was already defined.
 int doEndTag()
          Retrieve the required property and expose it as a scripting variable.
 int doStartTag()
          Check if we need to evaluate the body of the tag
 java.lang.String getComponent()
           
 java.lang.String getDefaultValue()
           
 java.lang.String getId()
           
 java.lang.String getProperty()
           
 java.lang.String getSelector1()
           
 java.lang.String getSelector2()
           
 java.lang.String getSelector3()
           
 java.lang.String getSelector4()
           
 java.lang.String getSelector5()
           
 java.lang.String getType()
           
 void release()
           
 void setComponent(java.lang.String component)
           
 void setDefaultValue(java.lang.String defaultValue)
          Note: currently this is only used if type is String
 void setId(java.lang.String id)
           
 void setProperty(java.lang.String property)
           
 void setSelector1(java.lang.String selector1)
           
 void setSelector2(java.lang.String selector2)
           
 void setSelector3(java.lang.String selector3)
           
 void setSelector4(java.lang.String selector4)
           
 void setSelector5(java.lang.String selector5)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

id

protected java.lang.String id

component

protected java.lang.String component

property

protected java.lang.String property

type

protected java.lang.String type

selector1

protected java.lang.String selector1

selector2

protected java.lang.String selector2

selector3

protected java.lang.String selector3

selector4

protected java.lang.String selector4

selector5

protected java.lang.String selector5

defaultValue

protected java.lang.String defaultValue
Constructor Detail

PropertyTag

public PropertyTag()
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getComponent

public java.lang.String getComponent()

setComponent

public void setComponent(java.lang.String component)

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getDefaultValue

public java.lang.String getDefaultValue()

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Note: currently this is only used if type is String

Parameters:
defaultValue -

getSelector1

public java.lang.String getSelector1()

setSelector1

public void setSelector1(java.lang.String selector1)

getSelector2

public java.lang.String getSelector2()

setSelector2

public void setSelector2(java.lang.String selector2)

getSelector3

public java.lang.String getSelector3()

setSelector3

public void setSelector3(java.lang.String selector3)

getSelector4

public java.lang.String getSelector4()

setSelector4

public void setSelector4(java.lang.String selector4)

getSelector5

public java.lang.String getSelector5()

setSelector5

public void setSelector5(java.lang.String selector5)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Check if we need to evaluate the body of the tag

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Save the body content of this tag (if any), or throw a JspException if the value was already defined.

Throws:
javax.servlet.jsp.JspException - if value was defined by an attribute

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Retrieve the required property and expose it as a scripting variable.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

release

public void release()


Copyright © 2005 EasyConf team. All Rights Reserved.