This isn't what you asked, but the first thing I'd do is change the "id" attribute of the logic:iterate tag to "dtlFormBean" to match the property. This way your field names will map to "dtlFormBean[0].indexFrom" and "dtlFormBean[0].indexTo". Then, as long as you have an indexed getter for dtlFormBean,
Struts will populate your form correctly.
Regarding javaScript: your hidden field will resolve to the name row[0].dtlModified. If you want to change his field,
you should reference it correctly as in:
Once you know how Struts is resolving it's tags into regular html tags, javascript in struts is the same as javascript with any html.
To get the sum, i'd use the DOM API within javaScript to iterate through the input fields and add up the values. If you don't know how to do that, you will need to increase your javaScript knowledge before continuing. Here is a link to one good tutorial:
http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=24 [ March 01, 2005: Message edited by: Merrill Higginson ]