|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.tags.JivePropertyTag
public class JivePropertyTag
A JSP tag to retrieve property values from the database. The tag will return the value or an empty String if the property doesn't exist.
Usage:
<%-- Get the property --%>
<jive:property name="foo.bar.someProperty" />
...
<%-- Branch only if the propery value is "true", "on" or "enabled" --%>
<jive:property if="foo.bar.someProperty">
...
</jive:property>
Name | Required |
---|---|
name | One or the other |
if | |
assumeTrue | no |
JiveGlobals.getJiveProperty(String)
Field Summary |
---|
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
JivePropertyTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Looks up the specified Jive property and writes it out. |
int |
doStartTag()
Evalutes the if, name and assumedTrue attributes. |
java.lang.String |
getAssumeTrue()
Returns the value of the assumeTrue attribute. |
java.lang.String |
getIf()
Returns the String we're testing for the value "true" |
java.lang.String |
getName()
Returns name of the Jive property to look up. |
javax.servlet.jsp.tagext.Tag |
getParent()
|
void |
release()
|
void |
setAssumeTrue(java.lang.String assumeTrue)
Sets the assumeTrue attribute. |
void |
setIf(java.lang.String ifAttribute)
Sets the String we're getting for the value "true" |
void |
setName(java.lang.String name)
Sets the name of the Jive property to look up. |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
|
void |
setParent(javax.servlet.jsp.tagext.Tag parentTag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JivePropertyTag()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the Jive property to look up.public java.lang.String getIf()
public void setIf(java.lang.String ifAttribute)
ifAttribute
- the String we're testing for the value "true"public java.lang.String getAssumeTrue()
public void setAssumeTrue(java.lang.String assumeTrue)
assumeTrue
- the value of the assumeTrue attribute.public void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
public void setParent(javax.servlet.jsp.tagext.Tag parentTag)
setParent
in interface javax.servlet.jsp.tagext.Tag
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |