• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Need help in getting the data.

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi List[],

By Query i am getting the data in following manner.For Particular Work Order.

Andhra Pradesh Programme Assistant Pragya Mishra
Andhra Pradesh Programme Assistant Pankaj
Andhra Pradesh Senior Programmer Sachin
Kashmir Programme Assistant Kapil Son
Kashmir Programme Shalini
But i want display the data in jsp page as.



1 Andhra Pradesh

Programmer Assistant Pragya Mishra
Programme Assistant Pankaj
Senior Programmer Sachin

2.
Kashmir
Programme Assistant Kapil Son
Programme Shalini

Please help me how i can do this using code.


Thanks
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to provide additional information:
Do you want to display this in a JSP page?
The result of your query is in a ResultSet OR some java object (what kind)?
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes i want to display this in jsp .

and the result of my query is in ResultSet.

like this;


where invoices is my list.
 
Sheriff
Posts: 22701
129
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Option 1: store everything in a Map, with the employee name as the key and the titles as a List

Option 2: make sure the ResultSet is ordered on employee name, then keep track of the last employee and print when it has changed:
 
Hang a left on main. Then read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic