[EMAIL PROTECTED] wrote on 17/11/2004 11:29:09 AM: > Honestly, I don't know the answers to your questions. I validate my > form fields and pass them to my business logic as a bunch of > individual fields, rather than using a DTO. At the most, I might use > a structure, particular for multi-part forms. The separation of > syntactic and semantic validation is still there, I'm just doing the > syntactic validation in a procedural way, rather than an OO way.
Actually, I just had that "light bulb moment" of clarity and you're right, i'm not making sense. I was just over-complicating the validation process and trying to shift the validation into a object(s). eg: FORM --> DTO Created based on FORM --> DTO Feed into UI Validator (UIBean) --> Updated DTO then Feed into Server-side Validator (serverBean) --> Bean then to DAO and call it a day. What should happen i guess, is: FORM --> UI validation (via controller?) --> DTO created --> DTO feed into Bean --> Severside Validation --> Bean feed into DAO - Call it a Day. (thats if you wanted to use a DTO, its a very simple example of DTO in the mix but hopefully you get the what i'm crappin on about). Clearly, i need to push away from the computer and play Half Life 2 for a bit. > > That diverged nicely, didn't it. Oh well. When Barney's tired and > grumpy he gets ranty and long-winded. Nope, actually enjoy reading your long-winded rants :) you seem to know a thing or two about stuff, heh. Scott To unsubscribe from this email please forward this email to [EMAIL PROTECTED] This email message is confidential and may be privileged. If you are not the intended recipient please forward the email to [EMAIL PROTECTED] and delete the original. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any general advice included in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on the advice, you should consider its appropriateness or discuss with one of our investment advisors. ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX Group .A principal member of the Financial Planing Association . ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at [EMAIL PROTECTED]
