Sun Java System Web Server 7.0 Update 2 Developer's Guide to Java Web Applications

collection Tag

This tag retrieves the name of the search collections on the server, iterates through them , and passes each of them to the collectionitem tag. Use this tag with collection item tags write your own HTML search collections.


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


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

The above code will display all collections with checkboxes.

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

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