You can define a submit control that clears query data by invoking the handler’s handleClearQuery()
method, in one of the following ways:
<dsp:input type="submit"
[
value="
l
abel
"
]
bean="
searchform
-
handler
.
"/>
<dsp:input type="image"
{
page|src
}
=
path
bean="
searchform
-
handler
.clearQuery"/>
The default implementation of handleClearQuery()
flushes all previous search query criteria and opens the page specified by the ClearQueryURL
property. Providing this option to users is especially important if the property allowRefine
is set to true. In this case, each successive query appends its search criteria to previous search criteria. Providing a Clear Query button allows users to start a fresh search.