Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 3130 invoked from network); 25 Mar 2004 09:08:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 25 Mar 2004 09:08:55 -0000 Received: (qmail 93221 invoked by uid 500); 25 Mar 2004 09:08:23 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 93195 invoked by uid 500); 25 Mar 2004 09:08:22 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 93181 invoked from network); 25 Mar 2004 09:08:22 -0000 Received: from unknown (HELO smtp100.mail.sc5.yahoo.com) (216.136.174.138) by daedalus.apache.org with SMTP; 25 Mar 2004 09:08:22 -0000 Received: from unknown (HELO yahoo.es) (ruospalo@80.224.16.2 with plain) by smtp100.mail.sc5.yahoo.com with SMTP; 25 Mar 2004 09:08:23 -0000 Message-ID: <4062A18D.1090308@yahoo.es> Date: Thu, 25 Mar 2004 10:08:29 +0100 From: ruben User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031115 Debian/1.5-3.he-1 X-Accept-Language: en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: is it possible to define a validation that runs only server side or client side (validation.xml ) References: <344AB7B28640704B84F28C6C720F077472F7D7@GMEXCH1.int.teb.com.tr> In-Reply-To: <344AB7B28640704B84F28C6C720F077472F7D7@GMEXCH1.int.teb.com.tr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Seyhan BASMACI (Internet Yazilimlari Yetkilisi) wrote: >I have a LoginForm form extends ValidatorForm and I want to decide >a validaton runs only on the server or client side, (or both ) >is there any way to do this_? > >
> > > >
> >--------------------------------------------------------------------- >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: struts-user-help@jakarta.apache.org > > > hi, if you want to call th javascript validation you only have to call the function validateLoginForm(form); if you don't call this function, client side validation is not called. the case of server side validation is more complex, if you only want to call the client side validation and not the server side, you have to overwrite the method validate of the ActionForm, and do nothing on it, returning null. --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org