Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question object vs bean object

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a general coding question,
Whicj would be the best method and why, using an object to store a lot of data such as a vector of objects. Or using a bean to hold the vector of objects.
As I see it a object can be used the same as a bean. When should I use a bean and when should I use an odinary object.
Thanks for any info Tony
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The distinction you are making isn't clear. A bean is an "ordinary" object that just follows some conventions that make it easy to access.
In that light, I make all objects that are exposed on-page bean-patterned since that makes their properties easy to access through the JSP and JSTL actions without having to resort to on-page Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic