collection:contains

Will render body if Collection contains specified Object. Else it will skip to body of this tag.

Syntax
<collection:contains
   collection="..."
   name="..."?
   property="..."?
   value="..."?>
   ...
</collection:contains>
Attributes
collection, mandatory

The collection we will check if it contains the specified object.

value

This will be the object to check if it is added to the specified Collection. It is not necessary to specify this attribute if name is used. They are mutual exclusively. If both are specified the value will be used.

name

Specifies the attribute name of the bean that we check if it is added to the specified collection. If property also is provided we will get that property from the bean specified here. This attribute is required unless you specify a value attribute.

property

Will get the property from the bean specified by the name attribute. To use this attribute name must also must be defined.