aspose file tools*
The moose likes JDBC 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
Bookmark "group by records in jsp" Watch "group by records in jsp" New topic
Author

group by records in jsp

pari kurt
Greenhorn

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
example
Product
Filename1 Size
FIlename2 Size2
Filename3 Size3
Product2
Filename4 Size5
Filename5 Size6
Howdo I acheive this??
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30774
    
156

Pari,
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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: group by records in jsp