• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Displaying large arraylist on a jsp

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic