Package org.deltava.taglib.format
Class MessageFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.MessageFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to support writing formatted text with URLs and emoticons.
- Since:
- 1.0
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
MessageFormatTag
public MessageFormatTag()
-
-
Method Details
-
setBbCode
public void setBbCode(boolean useBBCode) Sets whether BBCodes are to be translated.- Parameters:
useBBCode
- TRUE to translate, otherwise FALSE
-
setValue
-
doStartTag
Checks for the inclusion of common.js in the request.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Returns:
- TagSupport.SKIP_BODY
- Throws:
JspException
- if common.js is not included
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doEndTag
Renders the formatted message text to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- the formatted text
- Throws:
JspException
- if an error occurs
-