title: dynamic row create in jsp page
body: <p>ok... its a long question. but i think the answer is simple. though i can't find the solution myself. t have the four columns in a row in a jsp page. i would like to add 10 more rows using a loop in the page where the fields will have name like</p>
  
  <pre><code>row1_amount, row1_loantype,row1_date, row1_status
  row2_amount, row2_loantype,row2_date, row2_status
  </code></pre>
  
  <p>and so on.</p>
  
  <p>more clearly</p>
  
  <p><code>property="cib_borrower_report.loanType"</code> would be in all ten rows in the form.</p>
  
  <pre><code>property="cib_borrower_report.loanType1"
  property="cib_borrower_report.loanType2"
  property="cib_borrower_report.loanType3"
  </code></pre>
  
  <p>now if i want to do this naming using loop how to do this? how can i add 1,2,3.. in property??? </p>
  
  <p>if i can do this dynamically, it will help me in type of fetching the values. so please help.</p>
  
  <pre><code>&lt;table border="0"  cellpadding="1"&gt;&lt;tbody&gt;
      &lt;tr&gt;
          &lt;td &gt;&lt;label class="desc"&gt;&lt;bean:message key="label.cib.new.report.taken.amount"/&gt;&lt;/label&gt;&lt;/td&gt;
          &lt;td&gt;&lt;html:text property="cib_borrower_report.takenAmount" styleClass="SingleLineTextField" size="20"&gt;&lt;/html:text&gt;&lt;/td&gt;
          &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
  
          &lt;td&gt;&lt;label class="desc"&gt;&lt;bean:message key="label.cib.new.report.loan.type"/&gt;&lt;/label&gt;&lt;/td&gt;
          &lt;td&gt;&lt;html:text property="cib_borrower_report.loanType" styleClass="SingleLineTextField" size="20"&gt;&lt;/html:text&gt;&lt;/td&gt;
          &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
  
          &lt;td&gt;&lt;label for="cib_borrower_report.reportingDate" class="desc"&gt;&lt;bean:message key="label.cib.new.reporting.date" /&gt;&lt;/label&gt;&lt;/td&gt;
          &lt;td&gt;
              &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
                      &lt;td&gt;&lt;input type="Text" name="cib_borrower_report.reportingDate" id="cib_borrower_report.reportingDate" style="cib_borrower_report.reportingDate" class="SingleLineTextField" maxlength="10" size="10" tabindex="1" &gt;&lt;/td&gt;
  
                  &lt;td&gt;&lt;a href="javascript:NewCal('cib_borrower_report.reportingDate','mmddyyyy')"&gt;&lt;img align="middle" src="Images/cal.jpg" width="20" height="20" border="0" alt="Pick a date"&gt;&lt;/a&gt;&lt;/td&gt;
              &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
          &lt;/td&gt;
          &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
  
          &lt;td&gt;&lt;label class="desc"&gt;&lt;bean:message key="label.cib.new.loan.status"/&gt;&lt;/label&gt;&lt;/td&gt;
          &lt;td align="center"&gt;
              &lt;html:select property="cib_borrower_report.loanStatus" styleId="searchQuery1"&gt;
                  &lt;html:option value="STD"&gt;STD&lt;/html:option&gt;
                  &lt;html:option value="SMA"&gt;SMA&lt;/html:option&gt;
                  &lt;html:option value="SS"&gt;SS&lt;/html:option&gt;
                  &lt;html:option value="DF"&gt;DF&lt;/html:option&gt;
                  &lt;html:option value="BL"&gt;BL&lt;/html:option&gt;
              &lt;/html:select&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;
  </code></pre>