Package com.germinus.easyconf.taglib
Class ConfigurationObjectTag
- java.lang.Object
-
- BodyTagSupport
-
- com.germinus.easyconf.taglib.ConfigurationObjectTag
-
public class ConfigurationObjectTag extends 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"/>
-
-
Constructor Summary
Constructors Constructor Description ConfigurationObjectTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 tagjava.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)
-
-
-
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 JspException
Check if we need to evaluate the body of the tag- Throws:
javax.servlet.jsp.JspException
- if a JSP exception has occurredJspException
-
doAfterBody
public int doAfterBody() throws JspException
Save the body content of this tag (if any), or throw a JspException if the value was already defined.- Throws:
JspException
- if value was defined by an attribute
-
doEndTag
public int doEndTag() throws JspException
Retrieve the required property and expose it as a scripting variable.- Throws:
JspException
- if a JSP exception has occurred
-
release
public void release()
-
-