Re: Null element in List

2009-02-03 Thread Dave Newton
Use 's "emptyOption" attribute? I mean, you can't just put a "null" into a list and expect to get a value from it--you could put an empty string, maybe; that might work with an Integer object to avoid getting a 0. Dave DavidCAIT wrote: Actually that didn't work out when I tested it. A Tree

Re: Null element in List

2009-02-03 Thread DavidCAIT
>> private List myList = new ArrayList(); >> private Integer value; >> >> public String prepare() { >> >> myList.add(null); // commenting out this line removes the runtime JSP >> exception >> for (int i = 0; i < 60; i++) { >> myList.add(i); >> } } } >> >>

Re: Null element in List

2009-02-03 Thread DavidCAIT
gt; for (int i = 0; i < 60; i++) { > myList.add(i); > } } } > > My JSP page: > > > > > > > > > > Does anyone have any ideas or workarounds about how I can include a null > entry in a list of integers without getting thi

Null element in List

2009-02-03 Thread DavidCAIT
out getting this freemarker exception? Thanks, David -- View this message in context: http://www.nabble.com/Null-element-in-List%3CInteger%3E-tp21812998p21812998.html Sent from the Struts - User mailing list archive at Nabble.com. --