com.raritantechnologies.searchApp.query
Class QueryDisplayTag

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

public class QueryDisplayTag
extends BodyTagSupport
implements ICustomTag

JSP Custom Tag for Query display - use to create "Search Was" displays of current or stored/cached search terms.


Developed by Raritan Technologies .

Author:
Ted Sullivan
See Also:
Serialized Form

Field Summary
static java.lang.String CURRENT_QUERY
           
static java.lang.String LAST_QUERY
           
static java.lang.String SAVED_QUERY
           
 
Constructor Summary
QueryDisplayTag()
           
 
Method Summary
 int doStartTag()
           
 java.lang.String getBody(RaritanPageContext rpc)
          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)
           
 void setFormatterName(java.lang.String formatterName)
          Formatter name refers to a QueryFormatter defined in the configuration XML.
 void setQueryID(java.lang.String queryID)
           
 void setQueryReader(java.lang.String queryReaderName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_QUERY

public static final java.lang.String LAST_QUERY
See Also:
Constant Field Values

CURRENT_QUERY

public static final java.lang.String CURRENT_QUERY
See Also:
Constant Field Values

SAVED_QUERY

public static final java.lang.String SAVED_QUERY
See Also:
Constant Field Values
Constructor Detail

QueryDisplayTag

public QueryDisplayTag()
Method Detail

setFormatterName

public void setFormatterName(java.lang.String formatterName)
Formatter name refers to a QueryFormatter defined in the configuration XML.


setQueryReader

public void setQueryReader(java.lang.String queryReaderName)

setQueryID

public void setQueryID(java.lang.String queryID)

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

getBody

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

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

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