aspose file tools*
The moose likes Struts and the fly likes stroing 3d table  data data and displaying using struts logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "stroing 3d table  data data and displaying using struts logic" Watch "stroing 3d table  data data and displaying using struts logic" New topic
Author

stroing 3d table data data and displaying using struts logic

Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

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


SCJP 5.0, SCWCD 5, preparing for SCDJWS
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stroing 3d table data data and displaying using struts logic