This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am iterating over an ArrayList of objects. For each entry I createe a table row encapsulated within a form. In addition to iterate through the ArrayList I need to insert a number within the iteration so that each form element gets it unique id.
If it was scriptlet I would have no problem, but I am using JSTL <c:forEach>
How can I get the value for each iteration and pass it into formID#. Somehow I need to access the iteration number, like the i in for(int i = 0; i<list.size();i++)
I am using JSTL 1.1 and JSP 2.0 with Servlet-API 2.5