public class PresetToken
extends javax.servlet.jsp.tagext.TagSupport
This class provides the "presetToken" custom JSP tag that can only be used as a child tag of the "constructPreset" custom JSP tag. Multiple instances the tag can be used to define token map entries to apply when constructing a Spring Surf preset. It should be used as follows:
<constructPreset preset=""> <presetToken key="someKey" value="someValue"></presetToken> <presetToken key="anotherKey" value="anotherValue"></presetToken> </constructPreset>
| Constructor and Description |
|---|
PresetToken() |
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag()
Checks that the tag has been used as a direct child of a
ConstructPreset tag
and calls its addToken method with the key and value
attributes that have been provided. |
void |
setKey(String key)
This is required to set the
key attribute when the custom tag is used. |
void |
setValue(String value)
This is required to set the
value attribute when the custom tag is used. |
public void setKey(String key)
This is required to set the key attribute when the custom tag is used.
key - Stringpublic void setValue(String value)
This is required to set the value attribute when the custom tag is used.
value - Stringpublic int doStartTag()
throws javax.servlet.jsp.JspException
Checks that the tag has been used as a direct child of a ConstructPreset tag
and calls its addToken method with the key and value
attributes that have been provided.
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - If the parent of the tag is not a ConstructPreset tag.Copyright © 2005–2016 Alfresco Software. All rights reserved.