RE: how to add a new record to a table

2003-04-02 Thread shirishchandra.sakhare
Use logic:iterate tag to iterate over the list in the jsp... And in the action, set a property on from which tells what is the index of last bean... And use logic equal tag to decide if a given iteration is iterating on last bean..using the above mentioned property... And only for last bean use

RE: how to add a new record to a table

2003-04-02 Thread Anthony . Leon
I do something like this. It may not compile (esp. myformbean.getListSize()) and should use logic:iterate. Hope it helps; JSP; <% int i; for (i = 0; i < myformbean.getListSize(); i++) { String fieldName = "value(" + i + ")"; %> <% } String fieldName = "value(" + i+1 + "