Article View: borland.public.delphi.database.dotnet
Article #618Re: best place to validate values
From: David McCallum
Date: Tue, 16 Nov 2004 16:27
Date: Tue, 16 Nov 2004 16:27
26 lines
1674 bytes
1674 bytes
Ali, I've just been researching validation of beans in Java and come up with the following Validation is a two step process 1. Validate user data. This should be done on the client, validating only those fields the user can edit. Any problems at this stage can be reported to the user 2. Validate on server, this includes validate user data (because something else may try to update the data) and also validate any fields the user has no access to, e.g. a creation date, lookup values etc. Hope this helps David McCallum "Ali Ade" <mohamad_adel_2000@hotmail.com> wrote in message news:419a2787@newsgroups.borland.com... > delphi 8.net ,ado.net,multitier. > > what is best place to validate values at the client or the server and in > what event? ,pls help,ths. > >
Technical Details
Message-ID:
<419a2a85$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<419a2787@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,33b16eb4e9c49c84 X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David McCallum" <davidmccallumREMOVE@THISactual-systems.com> Newsgroups: borland.public.delphi.database.dotnet References: <419a2787@newsgroups.borland.com> Subject: Re: best place to validate values Date: Tue, 16 Nov 2004 16:27:49 -0000 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 217.41.45.30 Message-ID: <419a2a85$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100622469 217.41.45.30 (16 Nov 2004 08:27:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail