<table>
<c:if test="${output.list == nul}">
<tr><td><input type="text" /><select></select><input type="text" />
</td>
</tr>
</c:if>
<c:forEach var="iter" items="${output.list}">
<tr><td><input type="text" /><select></select><input type="text" value="${iter.getVal()}" />
</td>
</tr>
</c:forEach>
</tbody>
</table>
If my ${list}
is empty,how can I display .clone
row without duplicating codes or using javascript?
tr .clone
– Motive.clone
you neediter
anyway. Where from you going to getiter
if your list is empty? – Piddle