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>
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 align="left">
<select name='userFilter' ID='userFilter' onchange="filerAllJobs();"
<option VALUE=>ALL</option>
<c:forEach items="${jobList.jobList}"
<option VALUE=>${job.jobModifier}<
<c:set var="uniqueUsers" value="${job.jobModifier}"
</c:forEach>
</select>
</td>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER