GetPropertyTag Class
DEPRECATED
- public class GetPropertyTag
extends com.bea.p13n.content.servlets.jsp.taglib.BaseTag
Tag to retrieve or print a property of a ConfigurableEntity.
-
Hierarchy
-
Object
TagSupport
com.bea.p13n.content.servlets.jsp.taglib.BaseTag
GetPropertyTag
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
-
Direct Known Subclasses
-
com.bea.p13n.content.servlets.jsp.taglib.PrintPropertyTag
Methods from com.bea.p13n.content.servlets.jsp.taglib.com.bea.p13n.content.servlets.jsp.taglib.BaseTag |
getCacheId , getCacheScope , getCacheTimeout , getFailOnError , getHttpSession , getReadOnly , getUseCache , getUserId , setCacheId , setCacheScope , setCacheTimeout , setCacheTimeout , setFailOnError , setFailOnError , setReadOnly , setReadOnly , setUseCache , setUseCache , toDictionary
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateFormat
protected String
dateFormat
- The date format to use.
defValue
protected String
defValue
- The default value to print if the property is not found.
encodeType
protected String
encodeType
- The encode type.
entity
protected com.bea.p13n.property.ConfigurableEntity
entity
- The document to use.
maxLength
protected int maxLength
- The max length to print.
name
protected String
name
- The name of the property to print.
numFormat
protected String
numFormat
- The number format to use.
resultId
protected String
resultId
- The id of the script variable to put the result into.
resultType
protected String
resultType
- The type of the property.
scope
protected String
scope
- The property set name of the property to print.
GetPropertyTag
public GetPropertyTag()
doStartTag() Method
public int doStartTag()
throws JspException
Start the tag.
-
Overrides
-
TagSupport.doStartTag()
Exceptions
-
JspException
encode(String) Method
public String
encode(String
in)
Encode a string with the current encodeType.
encode(String, String) Method
public static String
encode(String
encodeType,
String
in)
Encode a string according to the specified encodeType.
Parameters
-
encodeType
- "html", "url", or anything else for no encoding.
-
in
- the string
Returns
- the encoded string.
getDateFormat() Method
public String
getDateFormat()
Get the date format
to use.
getDefault() Method
public String
getDefault()
Get the default
value.
getEncode() Method
public String
getEncode()
Get the value of GetPropertyTag.encodeType
.
getMaxLength() Method
public String
getMaxLength()
Get the value of GetPropertyTag.maxLength
as a String.
getName() Method
public String
getName()
Get the value of GetPropertyTag.name
.
getNumFormat() Method
public String
getNumFormat()
Get the number format
to use.
getResultId() Method
public String
getResultId()
Get the GetPropertyTag.resultId
.
getResultType() Method
public String
getResultType()
Get the GetPropertyTag.resultType
.
getScope() Method
public String
getScope()
Get the value of GetPropertyTag.scope
.
release() Method
public void release()
Release the tag.
-
Overrides
-
BaseTag.release()
setDateFormat(String) Method
public void setDateFormat(String
s)
Set the date format
to use.
setDefault(String) Method
public void setDefault(String
v)
Set the default
value.
setEncode(String) Method
public void setEncode(String
v)
Set the value of GetPropertyTag.encodeType
.
setEntity(ConfigurableEntity) Method
public void setEntity(ConfigurableEntity
entity)
Set the GetPropertyTag.entity
to use.
setMaxLength(String) Method
public void setMaxLength(String
v)
Set the value of GetPropertyTag.maxLength
.
setMaxLength(int) Method
public void setMaxLength(int length)
Set the value of GetPropertyTag.maxLength
.
setName(String) Method
public void setName(String
v)
Set the value of GetPropertyTag.name
.
setNumFormat(String) Method
public void setNumFormat(String
s)
Set the number format
to use.
setResultId(String) Method
public void setResultId(String
resultId)
Set the GetPropertyTag.resultId
.
setResultType(String) Method
public void setResultType(String
resultType)
Set the GetPropertyTag.resultType
.
setScope(String) Method
public void setScope(String
v)
Set the value of GetPropertyTag.scope
.
toString(Object) Method
public String
toString(Object
obj)
throws JspException
Convert an object property value to a string with our current
formatting.
Exceptions
-
JspException
- thrown on conversion failure when failOnError is
true.
Related Topics
GetPropertyTag.getDefault()
GetPropertyTag.toString(Date)
GetPropertyTag.toString(Number)
toString(Date) Method
public String
toString(Date
d)
throws JspException
Convert a date to our date format.
Exceptions
-
JspException
- thrown on conversion failure when failOnError is
true.
toString(Number) Method
public String
toString(Number
n)
throws JspException
Convert a number to our date format.
Exceptions
-
JspException
- thrown on conversion failure when failOnError is
true.