java - Read CSv Data and display total csv data in jsp page -



java - Read CSv Data and display total csv data in jsp page -

i have csv page , want read columns contains csv file , display in jsp page using next 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 display arraylist in jsp page using struts display tags.

i not able write setter methods of properties because not know csv file contained how many columns in changes file file

from have understood post have array list of strings , cannot display in jsp. want? quick solution can create new string list, , display string.

java jsp

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -