SearchTag Class
- public class SearchTag
extends BaseTag
JSP Tag implementation for searching for content. Please see the Search
class for additional information.
-
Hierarchy
-
Object
TagSupport
BaseTag
SearchTag
-
All Implemented Interfaces
-
IterationTag
, Serializable
, Tag
Methods from com.bea.content.manager.servlets.jsp.taglib.BaseTag |
getCacheId , getCacheScope , getCacheTimeout , getFailOnError , getHttpSession , getUseCache , getUserId , setCacheId , setCacheScope , setCacheTimeout , setCacheTimeout , setFailOnError , setFailOnError , setUseCache , setUseCache , toDictionary
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contextParams
protected Map
contextParams
- Context params.
expr
protected Expression
expr
- The query.
max
protected int max
- The maximum number of content to return.
nodes
protected Node
nodes
- The Nodes returned from the search.
queryStr
protected String
queryStr
- The query string.
sortBy
protected String
sortBy
- The sort by clause. The BEA Repository is only able to
sort on system properties as defined in the
Search
class.
SearchTag
public SearchTag()
doStartTag() Method
public int doStartTag()
throws JspException
Run the tag.
-
Overrides
-
TagSupport.doStartTag()
Exceptions
-
JspException
getContextParams() Method
public Map
getContextParams()
Get the context params.
getMax() Method
public String
getMax()
Get the value of SearchTag.max
as a String.
getQuery() Method
public String
getQuery()
Get the value of SearchTag.queryStr
.
getSortBy() Method
public String
getSortBy()
Get the value of SearchTag.sortBy
.
release() Method
public void release()
Release this tag.
-
Overrides
-
BaseTag.release()
setContextParams(String) Method
public void setContextParams(String
str)
Set the context params from semi-colon separate list of name=value
pairs.
setContextParams(Map) Method
public void setContextParams(Map
m)
Set the context params.
setExpression(Expression) Method
public void setExpression(Expression
expr)
Set the expression object
to use.
setMax(String) Method
public void setMax(String
v)
Set the value of SearchTag.max
.
setMax(int) Method
public void setMax(int l)
Set the value of SearchTag.max
.
setQuery(String) Method
public void setQuery(String
v)
Set the value of SearchTag.queryStr
.
setSortBy(String) Method
public void setSortBy(String
v)
Set the value of SearchTag.sortBy
.