tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helios Alonso <>
Subject Re: Iterating through form parametera
Date Tue, 17 Aug 2004 20:51:15 GMT
if items is a Map
then var is assigned with an Entry interface.

Entry has two methods, getKey and getValue so you can do:

<c:forEach ...var="entry"...>  <!-- nicer name ;-) -->
<c:out value="${entry.key}"/> has this value: <c:out value="entry.value"/>

(I saw it some time ago, sniffing at the for each tag source code).

At 13:45 17/08/2004 -0700, you wrote:
>    I want to iterate through form parameters that have been passed to the 
> page, but using:
><c:forEach items="${param}" var="params" varStatus="status">
>    <c:out value="${params}"/><BR>
>    </c:forEach>
>Outputs the full value ie: var1=hi
>I want to split var1 and 'hi' into two different variables, is there a way 
>to access that in JSTL, such as  '.value' or '.name'? I can't find any 
>documentation detailing the params....
>- Nic
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message