This tag constructs an HTML form that contains default, hidden form elements such as the current search result index and number of records per page by default. The default names for the form, index, and number of records are searchform, si, and ns.
The searchForm tag uses the following attributes:
Name- Specifies the name of the form. The default is searchform. The name of a form is the identifier for all other tags.
Action (Optional) - Specifies the form action.
Method (Optional) - Specifies the method of submission, GET or POST. The default is GET.
elemStart (Optional) - Specifies the name of the hidden Start element. If not specified, the default si will be used.
Start (Optional) - An integer indicating the starting index for displaying the search result. The default is 1.
elemNumShown (Optional) - The name of the nShown element. If not specified, the default ns is used.
numShown. (Optional) - An integer indicating the number of results to be shown per page. The value of the attribute will be retrieved by requesting parameter elemNumShown. The default is 10.
<s1ws:form action="results.jsp" /> ... </s1ws:searchForm>
This example creates an HTML form tag <form name="searchform" action="results.jsp" method="GET">, along with two hidden input boxes:
A hidden input box for starting the index named si with a value from the si parameter or default 1
A hidden input box for the number of records per page named ns with a value from the ns parameter or default 20