huzefaq
asked on
How to use <c:foreach
Hi Guys
I need help in how to use <C:foreach tag
Currrently I display my data from an array of string like this. Would anyone please show me how I can change this to JSTL, Thanks
-------------------------- ---------- ---------- --
<%
if(reportResult!=null)
{
for(int i=0;i<reportResult.length; i++)
{String itArr[] =reportResult[i].split("," );
%>
<tr align="center">
<TD><%if(null != itArr[0])out.write(itArr[0 ]); %></TD>
<TD><%if(null != itArr[1])out.write(itArr[1 ]); %></TD>
<TD><%if(null != itArr[2])out.write(itArr[2 ]); %></TD>
</tr>
<% }}%>
-------------------------- ---------- ---------- ---------- ---------- -----
I need help in how to use <C:foreach tag
Currrently I display my data from an array of string like this. Would anyone please show me how I can change this to JSTL, Thanks
--------------------------
<%
if(reportResult!=null)
{
for(int i=0;i<reportResult.length;
{String itArr[] =reportResult[i].split(","
%>
<tr align="center">
<TD><%if(null != itArr[0])out.write(itArr[0
<TD><%if(null != itArr[1])out.write(itArr[1
<TD><%if(null != itArr[2])out.write(itArr[2
</tr>
<% }}%>
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.