I have table which is created dynamically i need to pass id attribute with numeric value to input tag so that i can retrieve the input filed value. I used for Each tag to loop code snippet:
<c:forEach items="${map}" var="entry">
<tr>
<td>${entry.key}</td> // first t d filed
<td><input id="${id}" type="text" value="${entry.value}" size="50" /></t d> // second t d field with value
</tr>
</c:for Each>
I need something like this :
<input id="2" type="text" value="value" size="50" />
how can do this?can someone suggest me.