File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 595
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: 63858

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: question object vs bean object
jQuery in Action, 3rd edition