permaculture playing cards
The moose likes JSP and the fly likes question object vs bean object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "question object vs bean object" Watch "question object vs bean object" New topic

question object vs bean object

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 588
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

Joined: Jan 10, 2002
Posts: 63350

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
wood burning stoves
subject: question object vs bean object
It's not a secret anymore!