Hi ,

I am using <logic:iterate> tag to iterate through a list of contents.

When the List size is 1222, all the Contents in the List are displaying properly.

When the size execdes 1223, the JSP is not displaying properly.

I am not getting any exception also.
I have added try and catch. Still it is not showing any exception.

When the size is more than 1300, Some contents are not displaying in JSP.

Can any one provide some inputs, so that I can crack my issue.

The JSP code :

<logic:iterate id="someXXXX" property="someXXX" name="someXXX" indexId="count" scope="request">
<tr>
<td><html:text name="someXXXX" property="someXXXX" 
size="50" maxlength="50" onchange="setDirty()" indexed="true"/> </td> 
<td height="15" align="center"><html:checkbox property="someXXXX" name="someXXXX" indexed="true" onclick="setCheckboxFlag(this)" /> 
<td width="4"> </td> 
</tr>
<html:hidden property="someXXXX" name="someXXXX" indexed="true" />

</logic:iterate>

Thanks,
RamaKrishna

Recommended Answers

All 2 Replies

rams_it02>When the size execdes 1223, the JSP is not displaying properly.

You may iterate as many elements as you have. I think your collection has a problem.

<%
  java.util.ArrayList ar=new  java.util.ArrayList();
  for(int i=1;i<=20000;i++)
       ar.add(i);
%>

<logic:iterate id="output" collection="<%=ar%>">
   <bean:write name="output"/>
</logic:iterate>

Hi ,

I am using <logic:iterate> tag to iterate through a list of contents.

When the List size is 1222, all the Contents in the List are displaying properly.

When the size execdes 1223, the JSP is not displaying properly.

I am not getting any exception also.
I have added try and catch. Still it is not showing any exception.

When the size is more than 1300, Some contents are not displaying in JSP.

Can any one provide some inputs, so that I can crack my issue.

The JSP code :

<logic:iterate id="someXXXX" property="someXXX" name="someXXX" indexId="count" scope="request">
<tr>
<td><html:text name="someXXXX" property="someXXXX" 
size="50" maxlength="50" onchange="setDirty()" indexed="true"/> </td> 
<td height="15" align="center"><html:checkbox property="someXXXX" name="someXXXX" indexed="true" onclick="setCheckboxFlag(this)" /> 
<td width="4"> </td> 
</tr>
<html:hidden property="someXXXX" name="someXXXX" indexed="true" />

</logic:iterate>

Thanks,
RamaKrishna

Hi,

Use Overloaded constructors to auto increment the list buffer size.
i.e ArrayList a= new ArrayList( int initial capacity)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.