org.infoglue.deliver.taglib.common
Class TextTransformTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.TemplateControllerTag
              extended by org.infoglue.deliver.taglib.common.TextTransformTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class TextTransformTag
extends TemplateControllerTag

This tag help modifying texts in different ways. An example is to html-encode strings or replace all whitespaces with   or replacing linebreaks with

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
TextTransformTag()
          Default constructor.
 
Method Summary
 int doEndTag()
          Process the end tag.
 void setHtmlEncode(boolean htmlEncode)
           
 void setLineBreakChar(java.lang.String lineBreakChar)
           
 void setLineBreakReplacer(java.lang.String lineBreakReplacer)
           
 void setReplaceLineBreaks(boolean replaceLineBreaks)
           
 void setReplaceString(java.lang.String replaceString)
           
 void setReplaceWithString(java.lang.String replaceWithString)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.infoglue.deliver.taglib.TemplateControllerTag
getController
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTransformTag

public TextTransformTag()
Default constructor.

Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Modifies the string according to settings made.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

setText

public void setText(java.lang.String text)
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setHtmlEncode

public void setHtmlEncode(boolean htmlEncode)

setReplaceLineBreaks

public void setReplaceLineBreaks(boolean replaceLineBreaks)

setLineBreakChar

public void setLineBreakChar(java.lang.String lineBreakChar)
                      throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setLineBreakReplacer

public void setLineBreakReplacer(java.lang.String lineBreakReplacer)
                          throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setReplaceString

public void setReplaceString(java.lang.String replaceString)
                      throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setReplaceWithString

public void setReplaceWithString(java.lang.String replaceWithString)
                          throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2005 InfoGlue.org All Rights Reserved.