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 show table with dynamic rows and first column is a group  RSS feed

 
Tanu Gulati
Ranch Hand
Posts: 113
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement came up for me where I have to show a table with first colum as a main one and multiple rows grouped to it.

For example first column is a list of plants and every plant has a set of products associated to it which will be shown corresponding to the plant but number of rows corresponding to plant is varying and needs to be changed at runtime.

Do you know any way how can I achieve in jsp, struts?

thanks,


 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would use the "rowspan" attribute in a <td> cell to make it span some number of rows. Was that the part of the problem that you were missing, or was it something else? Your question was not very specific.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!