Hi friends,
I used the below code,
<%
int j = 0;
for (int i = 0; i < 25; i++) {%>
<core:forEach var="result_list" items="${searched.result_list}" begin="+<%=j%>+" end="+<%=j%>+">
<tr><td align="left" class="fastTitle"><core:out value="${result_list}" escapeXml="false"/> </td></tr>
</core:forEach>
<% j++;%>
<core:forEach var="result_list" items="${searched.result_list}" begin="+<%=j%>+" end="+<%=j%>+">
<tr><td align="left" class="fastTeaser"><core:out value="${result_list}" escapeXml="false"/> </td></tr>
</core:forEach>
<% j++;
}%>
I mean,
begin and
end are int values like 0,1,2. But for me, I want them to be a dynamic value and thats why I used a for loop.
I got an error saying, "incompatible type found: intrequired:java.lang.object incompatible type found".
Any suggestions/correction??
Regards,
Freddie