• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

a newbie on Beans

 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
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....
thanks,
k
 
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic