Dear all,
 
I know "iterate" is of java.util.List, so I  have to initial the length for the array in Java. Generally it use brackets[].
  <iterate property="fruits" conjunction=",">
    (#fruits[].id#, #fruits[].name#)
  </iterate>
 
Now I need insert some data, and the length is not fixed. So can I use the arraylist to replace list? Writing like this:
  <iterate property="fruits" conjunction=",">
    (#fruits.getid()#, #fruits.getname()#)
  </iterate>
 
Thanks so much for your warm-hearted help.
 
Steven

Reply via email to