Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

simple enumeration using JSTL

843836Apr 26 2005 — edited Apr 27 2005
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2005
Added on Apr 26 2005
3 comments
394 views