File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display of Data on Jsp, alternate

 
fahad siddiqui
Ranch Hand
Posts: 85
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some data i want to display on JSP. Standard method would be populate some beans, set beans in arraylist and send arraylist in request and fetch on JSP and display.

What other methods can be used to display data?
Please advise.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need for an array list. Why do you feel that the beans need to be added to a list before begin "sent" to the JSP?
 
fahad siddiqui
Ranch Hand
Posts: 85
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, so the arraylist can be eliminated. But any other patterns which could be used?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is there a need for other patterns? Any data that needs to be passed from the page controller (servlet) to its JSP should be added to the request as scoped vairables (using request.setAttribute()).

If the data needs to persist across multiple request, place it in session scope.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic