I am getting input from the user using html form. When the user clicks submit button, the input is sent to a jsp page.
In the html form, i have a checkbox (the user can select more than one value). I wrote the following code in the jsp page (say the parameter name is color).
<c:if test="${!empty param.color}">
<c:set var="strColor" value="${param.color}"/>
<c:forEach var="strC" items="${strColor}">
<c

ut value="${strC}"/>
</c:forEach>
</c:if>
(or)
<c:if test="${!empty param.color}">
<c:forEach var="strC" items="${param.color}">
<c

ut value="${strC}"/>
</c:forEach>
</c:if>
Both the codes display only the first value selected in the checkbox.
If i write scriptlet request.getParamaterValues("color"), it works. But i want to write it using JSTL.
Please help.