# com.bea.content.manager.servlets.jsp.taglib
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`

## Field Summary

`protected `Map`` | `contextParams` Context params.
`protected `Expression`` | `expr` The query.
`protected int` | `max` The maximum number of content to return.
`protected `Node`` | `nodes` The Nodes returned from the search.
`protected `String`` | `queryStr` The query string.
`protected `String`` | `sortBy` The sort by clause.

Fields from com.bea.content.manager.servlets.jsp.taglib`.`BaseTag``
``cacheId`, `cacheScope`, `cacheTimeout`, `failOnError`, `useCache``

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

SearchTag()

## Method Summary

`public int` | `doStartTag`() Run the tag.
`public `Map`` | `getContextParams`() Get the context params.
`public `String`` | `getMax`() Get the value of `SearchTag.max``` as a String.
`public `String`` | `getQuery`() Get the value of `SearchTag.queryStr```.
`public `String`` | `getSortBy`() Get the value of `SearchTag.sortBy```.
`public void` | `release`() Release this tag.
`public void` | `setContextParams`(`String` str) Set the context params from semi-colon separate list of name=value pairs.
`public void` | `setContextParams`(`Map` m) Set the context params.
`public void` | `setExpression`(`Expression` expr) Set the `expression object``` to use.
`public void` | `setMax`(`String` v) Set the value of `SearchTag.max```.
`public void` | `setMax`(int l) Set the value of `SearchTag.max```.
`public void` | `setQuery`(`String` v) Set the value of `SearchTag.queryStr```.
`public void` | `setSortBy`(`String` v) Set the value of `SearchTag.sortBy```.

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`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### 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.

## Constructor Detail

### SearchTag

    public SearchTag()

## Method Detail

### 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```.