list display

Higetting data from database in list(collection) and showing to jsp using strut.if nothing is obtained from list that is list size is 0 and even then I need to show all data value as 0
[198 byte] By [smita_smitaa] at [2007-10-3 2:48:42]
# 1
trying this but error bean not in scopeif(list.size()!=0){ session.setAttribute("a",a);}else{Integer c = new Integer(0);list.add(0,c);list.add(1,c);listset(0,c);list.set(1,c);session.setAttribute("a",a);}
smita_smitaa at 2007-7-14 20:37:29 > top of Java-index,Core,Core APIs...
# 2
in this list one is date others are integer
smita_smitaa at 2007-7-14 20:37:29 > top of Java-index,Core,Core APIs...
# 3
Please be more descriptive in your problem.Are you saying that you have list that has interger and a date in it and you want to show zero if there is no data? I am confused?
zadoka at 2007-7-14 20:37:29 > top of Java-index,Core,Core APIs...
# 4
yes.you are rightlist having integer and a dateregrads
smita_smitaa at 2007-7-14 20:37:29 > top of Java-index,Core,Core APIs...
# 5
Well, I don't think you will get an error bean not in scope because there is a date and Integer objects in a list.How are you trying to display the list?
zadoka at 2007-7-14 20:37:29 > top of Java-index,Core,Core APIs...