I don't see how enabling BO/VO to read stringified data makes them dependant on Struts packages.
On 7/8/05, Bill Schneider <[EMAIL PROTECTED]> wrote: > Well put. To expand on #2, it's good to confine dependencies on the > org.apache.struts packages to the presentation layer, and not build a > Struts dependency into business logic. > > > Personally I prefer to keep form beans and value objects seperate, for > > two key reasons: > > > > 1) form beans generally should consist of String data to facilitate > > round-tripping of invalid inputs. I like to constrain them to a clearly > > defined role of marshaling data 'into' and 'out of' the presentation > > layer, i.e. across the boundary between presentation and application. > > > > 2) value objects should use typed interfaces to ensure marshaling to and > > from presentation format (string types) is pushed as far up the > > application stack as possible. This also enables other, potentially > > type-aware, presentation / client tiers to be built on top of the same > > value objects (e.g. for a web-services interface). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]