File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes a newbie on Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "a newbie on Beans" Watch "a newbie on Beans" New topic

a newbie on Beans

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
does it make sense to only bind imuttable objects to a session (or allso to a server context) ? I wonder if it is a good idea to fill all the data (eg from an Item object i use in business logic) in a Object (a Bean) that only has getter methods in order to prevent a unused JSP designer to accidentaly call a method he is not supposed to call (eg. setStock(0). I dont have a application right now, im just curious and maybe the example is bad....) ? this would require to have two classes (Business object and Beanobject) versus having one class.
does anyone get what i try to tell ;-) btw. no doubts because of your intelligence but because of my lousy description....
I agree. Here's the link:
subject: a newbie on Beans
It's not a secret anymore!