You can define a submit button that clears query data by invoking the handler’s handleClearQuery()
method, as follows:
<dsp:input type="submit"
[
value="
l
abel
"
]
bean="
searchform
-
handler
.
"/>
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.