simple enumeration using JSTL
843836Apr 26 2005 — edited Apr 27 2005Hi all,
I've been searching the forums, but haven't been able to determine if the folowing is possible...
I submit a form, the corresponding action page receives the forms elements via the following statement:
<c:set var="frmElementNames"><%=request.getParameterNames()%></c:set>
I then wish to loop through the enumeration with a forEach tag as follows:
<c:forEach var="element" items="${frmElementNames}">
<%-- what do I put here to print the element names out and then the values for the associated element names? -->
</c:forEach>
Any pointers would be much appreciated.