0

Hy all

i want to display data in table format...

as like below result.


column1 column2 column3

1 2 sdg
3 4 dfg
4 6 gfdsg
6 7 ffdsg

the following snap of my code is take the column title dynamically

<c:forEach items="${emplistlist}" var="demos">

         <TD><c:out value="${demos.columnam1}" /></TD>  

</c:forEach>

and the the following snap of my code is take the value of the column dynamically

<c:forEach items="${emplistlist}" var="demos">

         <TD><c:out value="${demos.resultrow}" /></TD>  
</c:forEach>

and in jsp textares i can enter the multiple select query sio it will disply result like....

First select query result...

column1 column2 column3

1 2 sdg
3 4 dfg
4 6 gfdsg
6 7 ffdsg

second select query result...

column1 column2 column3

1 2 sdg
3 4 dfg
4 6 gfdsg
6 7 ffdsg

i had get all the column name and result for all the query..but i can not set up the result page as above....

below is my jsp code...

<table  border = "1" cellpadding="5" style="background-color: #ffffcc;">
<tr>
<c:forEach items="${emplistlist}" var="demos">

         <TD><c:out value="${demos.columnam1}" /></TD>  

</c:forEach>
         </tr> 
<c:forEach items="${emplistlist}" var="demos">

         <TD><c:out value="${demos.resultrow}" /></TD>  
</c:forEach>
</table>

and i want't use any scriplet code for the above solution.

Please help me anybody....

Thanks
Yatin Baraiya

3
Contributors
2
Replies
6
Views
6 Years
Discussion Span
Last Post by anand01
0

dear yatin.baraiya

read that link which given by peter_budo that will be very useful as of my experience ...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.