Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 88165 invoked from network); 10 Nov 2010 12:54:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 12:54:53 -0000 Received: (qmail 7182 invoked by uid 500); 10 Nov 2010 12:55:24 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 6618 invoked by uid 500); 10 Nov 2010 12:55:21 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 6610 invoked by uid 99); 10 Nov 2010 12:55:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:55:21 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of muasif80@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 12:55:16 +0000 Received: by bwz14 with SMTP id 14so649128bwz.30 for ; Wed, 10 Nov 2010 04:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=6hW1+LL7agqeC6AD+lGl0IoLpMtZNCav+P6xIFn4wfQ=; b=xYUeSQJWRWzocT4mrKJrX28Oth53h/m3RwFWSk5dl0CxNuPb3eF3gT/Ud2JHQer9WX uwafmaoZLzqjZ7yQNg3hrk6pDwkUx6DgY9fFsnZ8KmzNb5ubrN9Po8WCfaZYlYD+FFC2 Lq5hQ75r5sFj1tzfhN4B09SVJtPgmJeK7QOKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gR8gpV5jMJHvom9L+fAtemiigq8wkgFHn6WQ1kTPeBfli4+IZusU2n/KTAjfdOBBMU vDPN2Y9CLdHGr11sIezM+2OQ7jmv2wrilDNC9vXFM4ovyibSE1jrGko2rL0GfcwUM8Xd L6uPRGH8SpPM8W6LfeG3lrF2gVrNUSotsTdG4= MIME-Version: 1.0 Received: by 10.204.73.7 with SMTP id o7mr7950406bkj.7.1289393694879; Wed, 10 Nov 2010 04:54:54 -0800 (PST) Received: by 10.204.102.202 with HTTP; Wed, 10 Nov 2010 04:54:54 -0800 (PST) In-Reply-To: References: Date: Wed, 10 Nov 2010 17:54:54 +0500 Message-ID: Subject: [validator] Help Regarding Commons Validator to use it in servlets/jsp application From: Muhammad Asif To: Commons Users List Content-Type: multipart/alternative; boundary=001636c5b8ad28b2470494b25d09 --001636c5b8ad28b2470494b25d09 Content-Type: text/plain; charset=ISO-8859-1 Thank you very much Mohammad nour El-Din. I am taking a look at the recommended link. Can you answer a few short questions. 1. Do we always need a bean based validation. I believe in this scenario we must have to create a bean based on our form post 2. Can we also use a validation framework or more appropriately is there a validation framework which we can instantiate inside our servlet methods and feed our form input data into it for validation. Regards, Asif On Wed, Nov 10, 2010 at 5:16 PM, Mohammad Nour El-Din < nour.mohammad@gmail.com> wrote: > Hey :) > > Take a look at this > http://incubator.apache.org/bval/cwiki/index.html this is the new > standard based Bean-Validation framework for both JSE and JEE. > > On Wed, Nov 10, 2010 at 11:41 AM, Muhammad Asif > wrote: > > Dear all, > > > > I am a good programmer and I also had SCJP 1.5 but unfortunately have not > > worked on Java for a long time. > > > > At the moment I want to know how can we use commons validator in a simple > > servlet or jsp application without any other framework like struts, > spring > > or jsf. > > > > Can anyone point me to the correct place where I can see this. > > > > I have actually searched on the commons validator wiki and other places > but > > could not find an example or documentation explaining this in particular. > > Perhaps my inexperience is one reason that I could not use this commons > > validator based on the official documentation available. > > > > I am quite hopeful that I will get a good and helpful response soon. > > > > Regards, > > Asif > > > > > > -- > Thanks > - Mohammad Nour > Author of (WebSphere Application Server Community Edition 2.0 User Guide) > http://www.redbooks.ibm.com/abstracts/sg247585.html > - LinkedIn: http://www.linkedin.com/in/mnour > - Blog: http://tadabborat.blogspot.com > ---- > "Life is like riding a bicycle. To keep your balance you must keep moving" > - Albert Einstein > > "Writing clean code is what you must do in order to call yourself a > professional. There is no reasonable excuse for doing anything less > than your best." > - Clean Code: A Handbook of Agile Software Craftsmanship > > "Stay hungry, stay foolish." > - Steve Jobs > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --001636c5b8ad28b2470494b25d09--