com.raritantechnologies.dieselpoint.taglibrary
Class DidYouMeanTag

java.lang.Object
  extended byBodyTagSupport
      extended bycom.raritantechnologies.dieselpoint.taglibrary.DidYouMeanTag

public class DidYouMeanTag
extends BodyTagSupport

JSP Custom Tag that provides a "Did You Mean?" feature for Dieselpoint search source.


Developed by Raritan Technologies Inc..

Author:
Kepler Gelotte
See Also:
Serialized Form

Constructor Summary
DidYouMeanTag()
           
 
Method Summary
 int doStartTag()
           
 void setLabel(java.lang.String label)
          Set the label for the link, i.e.
 void setPassword(java.lang.String password)
          Password for user
 void setProperties(java.lang.String props)
          Properties for the link such as class, target onClick etc.
 void setQueryParam(java.lang.String query)
          Name of the search parameter (query)
 void setSearchSourceName(java.lang.String source)
          The name of a source configured in the application
 void setThreshold(java.lang.String thresh)
          The number of results under which the suggestion will be displayed
 void setUserName(java.lang.String userName)
          User name that will be used to restrict what is searched -- CURRENTLY DOES NOTHING --
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DidYouMeanTag

public DidYouMeanTag()
Method Detail

setQueryParam

public void setQueryParam(java.lang.String query)
Name of the search parameter (query)


setProperties

public void setProperties(java.lang.String props)
Properties for the link such as class, target onClick etc. props="class='style' target='_top'"

Parameters:
props -

setThreshold

public void setThreshold(java.lang.String thresh)
The number of results under which the suggestion will be displayed

Parameters:
thresh -

setLabel

public void setLabel(java.lang.String label)
Set the label for the link, i.e. Did you mean:

Parameters:
label -

setSearchSourceName

public void setSearchSourceName(java.lang.String source)
The name of a source configured in the application

Parameters:
source -

setUserName

public void setUserName(java.lang.String userName)
User name that will be used to restrict what is searched -- CURRENTLY DOES NOTHING --

Parameters:
userName -

setPassword

public void setPassword(java.lang.String password)
Password for user

Parameters:
password -

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException