File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stroing 3d table data data and displaying using struts logic

 
Venkata Kumar
Ranch Hand
Posts: 110
Firefox Browser Java MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have some data and want to display in browser in table format using jsp and struts.

CITY1
DATE TIME1 TIME2 ..... TIMEN
DATE1 INT_DATA INT_DATA INT_DATA
DATE2 INT_DATA INT_DATA INT_DATA
....
...
DATEN INT_DATA INT_DATA INT_DATA

CITY2
DATE TIME1 TIME2 ..... TIMEN
DATE1 INT_DATA INT_DATA INT_DATA
DATE2 INT_DATA INT_DATA INT_DATA
....
...
DATEN INT_DATA INT_DATA INT_DATA

number of columns and rows are not fixed and can change each time

Which collection object is more suitable to store this data such that i can iterate the object to display the information using struts tags.
Any information on the logic will be really useful.

Thanks,
Sai
 
Rob Spoor
Sheriff
Pie
Posts: 20380
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not that familiar with Struts, but a Map<List<X>> looks to be a good fit, with X being the object type for each row.
This map has the cities as keys, and the rows for each city inside the list for that city.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic