Results 1 to 8 of 8
Thread: Resultset to HTML Table
- 01-11-2010, 04:38 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 5
- Rep Power
- 0
- 01-11-2010, 05:11 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Do you want to do this using Java?
- 01-11-2010, 05:18 PM #3
Member
- Join Date
- Sep 2009
- Posts
- 5
- Rep Power
- 0
Yes Eranga
- 01-12-2010, 10:34 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Could be done in many ways. But you should explain what you exactly want to do this, how, where you going to display it and so on...
You can create a string with concatenating all the required html tags to in to string. But you have to display the text in HTML support control, like a label and so on.
- 01-12-2010, 01:21 PM #5
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
- 01-13-2010, 02:18 PM #6
Member
- Join Date
- Jan 2010
- Posts
- 4
- Rep Power
- 0
It needs some processing on the result set data before it get displayed.
Please make it clear, from where you are trying to generate it, like
1. As a servlet outptut
2. In a JSP page
Then it will easy for us to give solution.
Note: If you found the soulution,please share here for others.
- 01-14-2010, 08:19 PM #7
Member
- Join Date
- Sep 2009
- Posts
- 5
- Rep Power
- 0
I am generating it on a JSP page. As I loop though the arraylist that I build from DB Resultset, the problem is HTML table has to be constructed row by row. In the sense, each block below needs to be filled before I jump to the next col.
< tr>
< td>
2009
</td>
2010
< td>
</td>
</tr>
But my ArrayList is a list of Objects containing member variables as Year, Type, Total. When I loop though this list, I get all data pertaining to 2009 first and then only 2010.
Let me know if this post needs to be detailed more. Looking for some help
- 01-15-2010, 06:45 AM #8
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
Formatting resultset for html
By davwhite in forum New To JavaReplies: 0Last Post: 05-26-2008, 08:07 PM -
Generate Excel Report from a HTML table
By Sudha in forum New To JavaReplies: 0Last Post: 02-13-2008, 08:24 PM -
ResultSet to HTML
By Java Tip in forum Java TipReplies: 0Last Post: 02-12-2008, 09:32 AM -
Problem with applying Sql order by to html table
By sireesha264 in forum Advanced JavaReplies: 2Last Post: 02-04-2008, 10:20 AM -
Showing ResultSet in HTML table
By Java Tip in forum Java TipReplies: 0Last Post: 01-27-2008, 08:09 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks