Hello,
i am using struts2 , i have to write the data from a list into csvfile following is the method used for writting the data:
public void writeAlldata(List list) {
for (Iterator iter = list.iterator(); iter.hasNext()

{
System.out.print("write called");
String[] nextLine = (String[]) iter.next();
writeNext(nextLine);
}
there is some problem in " String[] nextLine = (String[]) iter.next(); "
an error is displayed ..
can any one plz hlp me out..
Nida