I am displaying this data in tabular form My problem is how can i use this index "ctr" in a java script For eg.
Thanks in advance
Joined: Feb 15, 2005
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.indexFrom" and "dtlFormBean.indexTo". Then, as long as you have an indexed getter for dtlFormBean, Struts will populate your form correctly.