Editing list using spring JSP input form tag

I recently had to allow the user to edit a list of Strings and was concerned with having to keep track of which Strings were being edited. Spring has made this simple and very clean.

On Form.java, there is a

List<String> ipList;

Within the JSP you add a forEach with an input tag as follows:

<c:forEach var="ip" items="${form.ipList}" varStatus="status">
   <div style="clear: both">
      <form:input path="ipList[${status.index}]"/>