使用contains函數即可判斷false、true
boolean java.util.List.contains(Object o)
Returns true if this list contains the specified element. More formally, returns true if and only if this list contains at least one element e such that (o == null ? e == null : o.equals(e)).
樣例
#foreach($status in $map.order)
<option value="$status" #if($!map.orderSelection.contains($status)) selected = "selected" #end>
$!{orderStatus.getDesc($!{status})}
</option>
#end