• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Doubt in request.setAttribute ("ListBean", userList);

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here userList(ArrayList) contains some 5000 elements and I am trying to use request.setAttribute("ListBean", userList); to display userList in JSP page.

will this work fine?
is there any disadvantage of using request.setAttribute?

please help me...
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using request.setAttribute ensures that the userList object is stored in request scope (i.e. will be visible in the JSP for example that the action forwards to). I would recommend using the source forge "display tag" to render the list on the jsp (http://displaytag.sourceforge.net/11/). this will automatically paginate your data, you can customise its look and feel also. it's very easy to use

you should never really be displaying excessive information on a jsp anyways, give the user a search facility to narrow it down or use display tag.

hope this helps - Ro.
 
manjula pranathi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much Ro...

ok I will try to use display tag...
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic