I have CSV page and I want read all columns contains CSV file and display in JSP page I am using following code:
br = new BufferedReader(new FileReader(csvFile));
while ((line = br.readLine()) != null) {
String[] country = line.split(cvsSplitBy);
wordList = Arrays.asList(country);
//System.out.println("data is"+wordList.size());
}
How to display ArrayList in JSP page using struts with display tags.
I am not able to write setter methods of properties because I do not know a CSV file contained how many columns in it as it changes file to file