Re: Validation in Struts 1

2010-10-25 Thread Qiang Li
On Mon, 2010-10-25 at 14:01 -0400, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side > validation is done with Javascript? > > Also between these two(.xml and execute() method) which one is better? > Any pros and cons? > > Anjib > > On 10/25/2010 1:55 PM

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
On Mon, Oct 25, 2010 at 2:01 PM, Anjib Mulepati wrote: > ok so is this mean both is server side validation and client side validation > is done with Javascript? ??? No. Client-side validation is done with JavaScript, because that's what runs inside browsers. Server-side validation is done in Ja

Re: Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
ok so is this mean both is server side validation and client side validation is done with Javascript? Also between these two(.xml and execute() method) which one is better? Any pros and cons? Anjib On 10/25/2010 1:55 PM, Dave Newton wrote: That's not combining client- and server-side valida

Re: Validation in Struts 1

2010-10-25 Thread Dave Newton
That's not combining client- and server-side validation, that's combining declarative and programmatic validation, unless you're talking about the JavaScript validation method. Dave On Mon, Oct 25, 2010 at 1:52 PM, Anjib Mulepati wrote: > Hi > > Can we combine client side validation and server s

Validation in Struts 1

2010-10-25 Thread Anjib Mulepati
Hi Can we combine client side validation and server side validation? i.e. using validation.xml as well as validation in validate() method as well. Does it make any sense? Thanks