Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying large arraylist on a jsp  RSS feed

 
Yuma Shankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an array list with over 5000 elements and am having trouble displaying it on a JSP page. It gets truncated for some reason.


The follwing is how I am dispalying it on my jsp:

{ArrayList a1 = package.StaticClass.getValues(); %>
<td>Field:<input:select name="test" bean="TestBean" "optionLabels="<%= a1 %>" optionValues="<%= a1 %>" /> </td>

Could I be running into some memory issues? Any ideas?

Thanks.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be that the browser is timing out your connection.
You could also be running into memory issues on your client.

Why are you trying to display so many rows at one time?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd look into breaking up the data into pages and/or giving your users filtering capabilities. 5000 records is far too much data to assimilate at one time.
 
Yuma Shankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The user can select a value from the list box and hence all the available values need to be displayed.
 
Yuma Shankar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, looks like this one does need a change of horns. Unfortunately, the original application in PowerBuilder is able to do it, I have that matador to fight!
[ June 07, 2005: Message edited by: Yuma Shankar ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!