com.germinus.easyconf.taglib
Class PropertyTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.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
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 |
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 |
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
PropertyTag
public PropertyTag()
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.