com.raritantechnologies.searchApp.taglibrary
Class GetPersistentParameterTag

java.lang.Object
  extended byBodyTagSupport
      extended bycom.raritantechnologies.searchApp.taglibrary.GetPersistentParameterTag
All Implemented Interfaces:
IConfigurable, ICustomTag

public class GetPersistentParameterTag
extends BodyTagSupport
implements ICustomTag

This tag get a parameter from the session data. It can also trim the resulting output in three ways:

  • from the start: One upon a time....
  • from the end: ...happily ever after
  • from a token: .../middle of the path...


    Developed by Raritan Technologies .

    Author:
    Alan Connell
    See Also:
    Serialized Form

    Constructor Summary
    GetPersistentParameterTag()
               
     
    Method Summary
     int doStartTag()
               
     java.lang.String getBody(RaritanPageContext pageContext)
              Returns the tag body.
     void initialize(org.w3c.dom.Element elem)
              Initializes the object from an XML tag or element.
     void initialize(java.util.Map initParams)
               
     boolean isEnabled()
               
     void setCharLimit(java.lang.String charLimit)
               
     void setEllipsis(java.lang.String ellipsis)
               
     void setEnable(boolean enabled)
               
     void setFieldName(java.lang.String fieldName)
               
     void setParamId(java.lang.String paramId)
              required by ISearchElementRenderer
     void setTrimFrom(java.lang.String trimFrom)
               
     void setTrimToken(java.lang.String trimToken)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    GetPersistentParameterTag

    public GetPersistentParameterTag()
    Method Detail

    setParamId

    public void setParamId(java.lang.String paramId)
    required by ISearchElementRenderer


    setTrimFrom

    public void setTrimFrom(java.lang.String trimFrom)

    setTrimToken

    public void setTrimToken(java.lang.String trimToken)

    setEllipsis

    public void setEllipsis(java.lang.String ellipsis)

    setCharLimit

    public void setCharLimit(java.lang.String charLimit)

    setEnable

    public void setEnable(boolean enabled)

    isEnabled

    public boolean isEnabled()

    setFieldName

    public void setFieldName(java.lang.String fieldName)

    initialize

    public void initialize(org.w3c.dom.Element elem)
    Description copied from interface: IConfigurable
    Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

    Specified by:
    initialize in interface IConfigurable

    initialize

    public void initialize(java.util.Map initParams)
    Specified by:
    initialize in interface ICustomTag

    doStartTag

    public int doStartTag()
                   throws JspException
    Throws:
    JspException

    getBody

    public java.lang.String getBody(RaritanPageContext pageContext)
    Description copied from interface: ICustomTag
    Returns the tag body.

    Specified by:
    getBody in interface ICustomTag
    Parameters:
    pageContext - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
    Returns:
    The tag body text string.