R: Iterating over a List of JavaBean

2007-04-04 Thread Marcello Savino
Oggetto: Re: Iterating over a List of JavaBean 2007/4/4, Marcello Savino <[EMAIL PROTECTED]>: > for (int i=0;i > ((ActionFormBase)form).lista.add(l); > } It seems like a bug, you are putting the array in th

Re: Iterating over a List of JavaBean

2007-04-04 Thread Dave Newton
--- Marcello Savino wrote: > for (int i = 0; i < l.length; i++) { > ((ActionFormBase) form).lista.add(l); > } You may mean l[i] here. Tip o' the day: cast your form once, early; it's much easier to read. d.

RE: Iterating over a List of JavaBean

2007-04-04 Thread Raghupathy, Gurumoorthy
iling List Subject: Iterating over a List of JavaBean Hi all, In a jsp file i need to iterate over an ArrayList of javabean : The bean: public class myBean implements java.io.Serializable{ private Integer code; private String name; public Integer getCode(){r

Re: Iterating over a List of JavaBean

2007-04-04 Thread Antonio Petrelli
2007/4/4, Marcello Savino <[EMAIL PROTECTED]>: for (int i=0;i It seems like a bug, you are putting the array in the list a lot of times :-) Antonio - To unsubscribe, e-mail: [EMAIL PROTE

Iterating over a List of JavaBean

2007-04-04 Thread Marcello Savino
Hi all, In a jsp file i need to iterate over an ArrayList of javabean : The bean: public class myBean implements java.io.Serializable{ private Integer code; private String name; public Integer getCode(){return code;} public String getName(){return name;}