It's not a secret anymore!
The moose likes JDBC and Relational Databases and the fly likes group by records in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "group by records in jsp" Watch "group by records in jsp" New topic

group by records in jsp

pari kurt

Joined: Mar 25, 2004
Posts: 2
I am populating beans using rows in the database.I put these bean objects in a Vector and pass this vector to jsp.I would like to do a group by on one of the bean property
Filename1 Size
FIlename2 Size2
Filename3 Size3
Filename4 Size5
Filename5 Size6
Howdo I acheive this??
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33106

Not really a JDBC question, but you need to sort your records by product. Then you can see when the product changes and print a header.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: group by records in jsp
It's not a secret anymore!