G
Gordon Macleod
Hello there,
The problem I have is that I want to iterate over a ArrayList (using
Struts), grouping by a certain value.
For example, here is some data:
Country City
-----------------------------------------
France Marseille
France Paris
Germany Munich
Scotland Glasgow
Scotland Edinburgh
USA Arizona
USA Los Angeles
USA New York
How can this be done in Struts? What are the tags I require to group
this data so that I can display it in a browser like so :
France
Marseille
Paris
Germany
Munich
Scotland
Edinburgh
Glasgow
USA
Arizona
Los Angeles
New York
Many thanks in advance,
Gordon
The problem I have is that I want to iterate over a ArrayList (using
Struts), grouping by a certain value.
For example, here is some data:
Country City
-----------------------------------------
France Marseille
France Paris
Germany Munich
Scotland Glasgow
Scotland Edinburgh
USA Arizona
USA Los Angeles
USA New York
How can this be done in Struts? What are the tags I require to group
this data so that I can display it in a browser like so :
France
Marseille
Paris
Germany
Munich
Scotland
Edinburgh
Glasgow
USA
Arizona
Los Angeles
New York
Many thanks in advance,
Gordon