com.germinus.easyconf.taglib
Class ConfigurationObjectTag

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

public class ConfigurationObjectTag
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:configurationObject id="dbConf" component="test_module" type="com.germinus.easyconf.example.DatabaseConf"/> >bean:write name="dbConf" property="tables"/>

See Also:
Serialized Form

Field Summary
protected  java.lang.String component
           
protected  java.lang.String id
           
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
ConfigurationObjectTag()
           
 
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 getId()
           
 java.lang.String getType()
           
 void release()
           
 void setComponent(java.lang.String component)
           
 void setId(java.lang.String id)
           
 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

type

protected java.lang.String type
Constructor Detail

ConfigurationObjectTag

public ConfigurationObjectTag()
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)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

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.