I have the following code:

<%
    System.out.println("Start Page: " + startPage); //DEBUG
    System.out.println("End Page: " + endPage); //DEBUG
%>

<c:forEach begin="${startPage}" end="${endPage}">
    <%
        System.out.println("Looping..."); //DEBUG
    %>
</c:forEach>

When I run this code, I get the following values printed out for start and
end:

Start Page: 0
End Page: 42

But, the code only loops through one time, instead of looping all the times
I would expect... Shouldn't it be counting up through all iterations between
0 and 42?

If I replace the begin and end with 0 and 42 like this:

<c:forEach begin="0" end="42">
    <%
        System.out.println("Looping..."); //DEBUG
    %>
</c:forEach>

Then it loops as I would expect.

What am I doing wrong?

Thanks,
Hunter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to