| Author |
Need help in getting the data.
|
pankaj semwal
Ranch Hand
Joined: Oct 07, 2008
Posts: 300
|
|
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
|
 |
James Ward
Ranch Hand
Joined: Apr 27, 2003
Posts: 263
|
|
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
Joined: Oct 07, 2008
Posts: 300
|
|
Yes i want to display this in jsp .
and the result of my query is in ResultSet.
like this;
where invoices is my list.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
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:
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Need help in getting the data.
|
|
|