com.acsinet_solutions.cetia4.tags
Class DisplayTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.acsinet_solutions.cetia4.tags.support.LogTagSupport
          extended by com.acsinet_solutions.cetia4.tags.DisplayTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.DynamicAttributes, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally

public class DisplayTag
extends LogTagSupport

Text limiting and/or decoding version of <c:out>.

Author:
Santiago Arriaga
See Also:
Serialized Form

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
DisplayTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
protected  java.lang.String limit(java.lang.String text)
          Write the text just limited.
 void setDecoder(java.lang.String decoder)
          Set an optional decoding; "url", "alpha", and "html" are valid values.
 void setLimit(java.lang.String limit)
          Set the limit property
 void setPadding(java.lang.String padding)
          Set the value of the padding, that is the value that will be appended to the text limited output if limit is set.
 void setText(java.lang.String text)
          Set the text value.
protected  void writeText(java.io.Writer writer)
          Get the text to print.
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogTagSupport
doCatch, doFinally, fillDynamicValues, fillDynamicValues, getConfiguration, getDynamicAttributes, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession, setDynamicAttribute
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayTag

public DisplayTag()
Method Detail

setLimit

public final void setLimit(java.lang.String limit)
Set the limit property


setText

public final void setText(java.lang.String text)
Set the text value. The assigned text value must be not-null.


setPadding

public final void setPadding(java.lang.String padding)
Set the value of the padding, that is the value that will be appended to the text limited output if limit is set.


setDecoder

public final void setDecoder(java.lang.String decoder)
Set an optional decoding; "url", "alpha", and "html" are valid values. URL decoder is the typical standard URLDecoder. HTML decoder interprets line breaks, URL and email links, and GIF icons.

See Also:
URLCodec, AlphaCodec, format(Writer,String)

limit

protected final java.lang.String limit(java.lang.String text)
Write the text just limited.


writeText

protected void writeText(java.io.Writer writer)
                  throws java.io.IOException
Get the text to print. Overridable API

Throws:
java.io.IOException

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class LogTagSupport
Throws:
javax.servlet.jsp.JspException