Here's a thought ... We perform some validation in the validate method of the Form. Just the bare minimum stuff: required fields and basic picture checks.
Once you're inside the form object, you've already paid the price of the HTTP roundtrip. So ... we perform all of the business validation in the model objects. Our actions extract the data from the form objects and call back into the system-proper, where our business object performs the full validation checking: stuff like "does that order number exist?", "is that item really associated with the currently being processed order?" ... stuff like that, that is hard to do in the validate methods. That's what we do, but YMMV. Simon ----------------------------------------------------------------- Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 "Never give in - never, never, never, never, in nothing great or small, large or petty, never give in except to convictions of honor and good sense." - Sir Winston Churchill >-----Original Message----- >From: David Thielen [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 14, 2003 11:31 AM >To: Struts-Users >Subject: validation philosophical question > > >Hi; > >Everyone who hits my site has a high-speed connection. So I am >thinking that it makes sense to do server side validation only >as that provides a better method than the javascript pop-ups. > >And in this case, it seems to me that the logical place for >all validation then is inside the ActionForm validate method. > >comments? > >thanks - dave > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]