public class CmsJspTagProperty extends javax.servlet.jsp.tagext.TagSupport
Of particular importance is the setting of the file attribute,
which can take the following values.
This attribute allows you to specify where to search for the property.
The following values are supported:
There are also some deprecated options for the "file" value that are still supported but should not longer be used:
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsJspTagProperty.CmsPropertyAction
Tells for which resource properties should be looked up (with or without searching), depending on the
FileUse. |
| Constructor and Description |
|---|
CmsJspTagProperty() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getDefault()
Returns the default value.
|
java.lang.String |
getEscapeHtml()
The value of the escape html flag.
|
java.lang.String |
getFile()
Returns the file name.
|
java.lang.String |
getName()
Returns the property name.
|
static java.util.Map<java.lang.String,java.lang.String> |
propertiesTagAction(java.lang.String action,
javax.servlet.ServletRequest req)
Internal action method.
|
static java.lang.String |
propertyTagAction(java.lang.String property,
java.lang.String action,
java.lang.String defaultValue,
boolean escape,
javax.servlet.ServletRequest req)
Internal action method.
|
static java.lang.String |
propertyTagAction(java.lang.String property,
java.lang.String action,
java.lang.String defaultValue,
boolean escape,
javax.servlet.ServletRequest req,
java.util.Locale locale)
Internal action method.
|
void |
release() |
void |
setDefault(java.lang.String def)
Sets the default value.
|
void |
setEscapeHtml(java.lang.String value)
Set the escape html flag.
|
void |
setFile(java.lang.String file)
Sets the file name.
|
void |
setLocale(java.lang.String locale)
Sets the locale for which the property should be read.
|
void |
setName(java.lang.String name)
Sets the property name.
|
public CmsJspTagProperty()
public static java.util.Map<java.lang.String,java.lang.String> propertiesTagAction(java.lang.String action, javax.servlet.ServletRequest req) throws CmsException
action - the search actionreq - the current requestnull if not found (and no defaultValue provided)CmsException - if something goes wrongpublic static java.lang.String propertyTagAction(java.lang.String property, java.lang.String action, java.lang.String defaultValue, boolean escape, javax.servlet.ServletRequest req) throws CmsException
property - the property to look upaction - the search actiondefaultValue - the default valueescape - if the result html should be escaped or notreq - the current requestnull if not found (and no defaultValue was provided)CmsException - if something goes wrongpublic static java.lang.String propertyTagAction(java.lang.String property, java.lang.String action, java.lang.String defaultValue, boolean escape, javax.servlet.ServletRequest req, java.util.Locale locale) throws CmsException
property - the property to look upaction - the search actiondefaultValue - the default valueescape - if the result html should be escaped or notreq - the current requestlocale - the locale for which the property should be readnull if not found (and no defaultValue was provided)CmsException - if something goes wrongpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportTagSupport.doEndTag()public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionTag.doStartTag()public java.lang.String getDefault()
public java.lang.String getEscapeHtml()
public java.lang.String getFile()
public java.lang.String getName()
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportTag.release()public void setDefault(java.lang.String def)
This is used if a selected property is not found.
def - the default valuepublic void setEscapeHtml(java.lang.String value)
value - should be "true" or "false" (all values other then "true" are
considered to be false)public void setFile(java.lang.String file)
file - the file namepublic void setLocale(java.lang.String locale)
locale - the locale for which the property should be read.public void setName(java.lang.String name)
name - the property name to set