Link to home
Start Free TrialLog in
Avatar of Waponi
Waponi

asked on

Make unique select entries from duplicates in list

Hello,
Is there a JSP/jstl side way of creating a unique list/set on the fly.
I have to pull a series of user names  =  job.jobModifier from a list
and build a drop down with the results.
The problem is that there will be duplicates.
Is there a easy way of creating  a set from the list and using it to build the select entries ?

Thanks.

<td class="navWhite"  align="left"><b>User</b></td>
<td align="left">
<select name='userFilter' ID='userFilter' onchange="filerAllJobs();">      
<option VALUE=>ALL</option>
<c:forEach items="${jobList.jobList}" var="job" varStatus="status" >      
<option VALUE=>${job.jobModifier}</option>
<c:set var="uniqueUsers" value="${job.jobModifier}" />                
</c:forEach>
</select>
</td>
SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Waponi
Waponi

ASKER

Thanks