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="label"] bean="searchform-handler.clearQuery"/>

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

loading table of contents...