aspose file tools*
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
Author

question object vs bean object

Tony Evans
Ranch Hand

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

Joined: Jan 10, 2002
Posts: 61206
    
  66

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question object vs bean object