Sun Java System Web Server 6.1 SP11 Programmer's Guide to Web Applications

<collection>

Function

Retrieves the name of search collections on the server, and iterates through and passes each of them to the collectionitem tag. Users may choose to use this tag along with collection item tags so they can write their own HTMLs.

Attributes

items. (optional) A comma-delimited string representing the search collections available. The tag retrieves all collections available on the server if the attribute is empty.

Usage

<table border=0>
<s1ws:collection>
<tr><td><input type=checkbox name="c" 
value="<s1ws:collItem property="name" >">
<s1ws:collItem property="display name" >
</td></tr>
</s1ws:collection>
</table>

The above code will display all collections with checkboxes.

<select name=elementname>
<s1ws:collection>
<option value="<s1ws:collItem property=\"name\" >">
<s1ws:colleItem property="display name" >
</s1ws:collection>
</select>

This iterates through the available collections and passes each item to the collection item tag, which in turn displays the name and display name of the item.