EL not working in forEach

I am using a forEach to iterate through an array. The EL of the forEach var is not working.

Here is a code snippet:

<c:forEach var="param" items="${branchSettings.parameters}">

<tr>

<td>${param.category}</td>

<td>${param.name}</td>

<td>${param.value}</td>

</tr>

</c:forEach>

When I change it to this it works but I really want to use EL.

<c:forEach var="param" items="${branchSettings.parameters}">

<jsp:useBean id="param" class="com.aaa.pos.config.Parameter"/>

<tr>

<td><%= param.getCategory() %></td>

<td><%= param.getName() %></td>

<td><%= param.getValue() %></td>

</tr>

</c:forEach>

I am using Tomcat 5 with jdk 5

[1182 byte] By [aaa-mana] at [2007-11-26 16:20:06]
# 1

param is a reserved name through which you can reach the request parameters.

Change it to this:

<c:forEach var="current" items="${branchSettings.parameters}">

<tr>

<td>${current.category}</td>

<td>${current.name}</td>

<td>${current.value}</td>

</tr>

</c:forEach>

gimbal2a at 2007-7-8 22:43:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
That was it, thanks! I thought I tried changing that to a different name. I was going crazy trying to figure it out.
aaa-mana at 2007-7-8 22:43:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...