This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Display Vertical resultSet values Horizontally?  RSS feed

 
Aman Singh
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,
I am fairly new to java. I am trying to produce a table on my JSP page with values and column headers to be fetched from the Table present in the Oracle DB.
Till now I just know that, I can generate the column as <th>rs.getString(1)</th>
but how do I bring those vertical values into horizontal.

Thanks in advance.
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you have a JTable on your JSP page? Why not just use HTML tables?

Anyway I think you will need a custom ColumnModel or something like that. See if there is setAlignment() or similar method to do your thing.

Hope this helps.
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for us beginners.
Moving.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!