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"/>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
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
Check if we need to evaluate the body of the taggetId()
getType()
void
release()
void
setComponent
(String component) void
void
-
Field Details
-
id
-
component
-
type
-
-
Constructor Details
-
ConfigurationObjectTag
public ConfigurationObjectTag()
-
-
Method Details
-
getId
-
setId
-
getComponent
-
setComponent
-
getType
-
setType
-
doStartTag
public int doStartTag() throws JspExceptionCheck 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 JspExceptionSave 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 JspExceptionRetrieve the required property and expose it as a scripting variable.- Throws:
JspException
- if a JSP exception has occurred
-
release
public void release()
-