• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tables, bean representing values over time, how to?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I am looking for some pattern in struts (taglib,..) for generation of beans that represent values changing over time.

Let's say you have bean



Then I have list of SomeBean objects, where each instance represent one year

Every example I have seen generate table in this format

year | value
2001 | 3242
2002 | 4564
2003 | 5656

etc.


f.ex. this one from http://struts.improve-technologies.com/intro/index.html


But I'd like to present this in this way

year | 2001 | 2002 | 2003
value| 3242 | 4564 | 5656


that is bean properties as rows not columns,

In this use case we know that we'll have list f.ex. 10 years, but we have many value properties in bean.

Do you have any tips how to achieve it in nice and elegant way?(by nice and elegant I mean layout:collection example)

regards,

milan
 
Milan Chud�k
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've forgotten, it can be struts 1 or struts 2, it doesn't matter right now
reply
    Bookmark Topic Watch Topic
  • New Topic