• Post Reply Bookmark Topic Watch Topic
  • New Topic

C:for each function & Nested tables in JSP

 
dath Tha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am having problem in JSP grouping by using c:forEach loop.

I have a Java program which returns data on the jsp from the database.

I have written a JSP program which displays the rows in the following format.

Header: Name, Email, MaterialType, SerialNo , Barcode
value1: ABC, ab.@gmail, Laptop, XYZ123 31034
value2: BDC, bc@gmail, Laptop, XYZ321 42045
value3: BDC, bc@gmail, Desktop, ABC123 12345
value4: CDE cd@gmail Laptop 456ADC 23456

But my requirement is I have to do grouping where I have to display Name, Email only once for each employee name and display the list of items.

Header: Name, Email, MaterialType, SerialNo, Barcode
value1: ABC ab.@gmail Laptop XYZ123 31034
value2: BDC bc@gmail Laptop XYZ321 42045
Desktop ABC123 12345
value3: CDE cd@gmail Laptop 456ADC 23456

I have tried using nested tables, c:foreach loop but I couldn't make it.

Please help me in resolving this.

Thanks in Advance,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you could show us what you've tried so far.

(Please UseCodeTags)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!