RE: Javascript validation for struts form field elements

2003-07-31 Thread Suzette Daniel
Use struts validation, don't give the form it's own name this is done in the struts config file. See Struts in Action chapter 12 (http://www.manning.com/husted/chap12.pdf). Suzette H. Daniel -Original Message- From: Veena B N [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:13

RE: Javascript validation for struts form field elements

2003-07-31 Thread Veena B N
To: 'Struts Users Mailing List' Subject: RE: Javascript validation for struts form field elements Use struts validation, don't give the form it's own name this is done in the struts config file. See Struts in Action chapter 12 (http://www.manning.com/husted/chap12.pdf). Suzette H. Daniel -Original

RE: Javascript validation for struts form field elements

2003-07-31 Thread Mike Jasnowski
One such way is this document.forms[0].elements[ ele name with dot here ] -Original Message- From: Veena B N [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 7:58 AM To: 'Struts Users Mailing List' Subject: RE: Javascript validation for struts form field elements Thanks daniel

Re: javascript validation

2003-06-20 Thread Ben Anderson
Hi, Can someone expalin the html:javascript tag a little bit or point me somewhere. I'm trying to understand what the dynamic and static attributes do. I've read over the html tags page at the struts home page, but it doesn't explain much. I've tried with every combination of static and

Re: javascript validation

2003-06-20 Thread Kris Schneider
I'm no validator expert, but here's my take on it. Static JavaScript is produced from the javascript subelements of the validator elements in the validator config files. For example, the standard validateRequired function contained in the validator-rules.xml file that ships with Struts. Best

Re: javascript validation

2003-06-20 Thread Kris Schneider
Small cut-n-paste error in the example. I believe the content type for an external JavaScript file should be application/x-javascript: %@ page contentType=application/x-javascript % Quoting Kris Schneider [EMAIL PROTECTED]: I'm no validator expert, but here's my take on it. Static JavaScript

Re: javascript validation

2003-06-19 Thread David Graham
You need this: onsubmit=return validateBillingParametersForm(this); David Hi, I have the following in my struts-config.xml action path=/admin/createContentType type=com.xdeep.pacific.servlet.admin.forms.ContentTypesAction name=BillingParametersForm scope=request

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-25 Thread Nekkalapudi, Viplava
;acm.org] Sent: Thursday, October 24, 2002 4:14 PM To: Struts Users Mailing List Subject: Re: JavaScript Validation: MinLength MaxLength Functions Don't Work This has been explained before. I think it was by Ted. The reason has to do with security. Specifying bouinds on the length of a password

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread bachan s
- From: bachan s [mailto:bachan_anand;yahoo.com] Sent: Thursday, October 24, 2002 2:39 PM To: Struts Users Mailing List Subject: Re: JavaScript Validation: MinLength MaxLength Functions Don't Work Can you try removing the required from the depends for password and give minlength and maxlength

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread Hajratwala, Nayan (N.)
4:14 PM To: Struts Users Mailing List Subject: Re: JavaScript Validation: MinLength MaxLength Functions Don't Work This has been explained before. I think it was by Ted. The reason has to do with security. Specifying bouinds on the length of a password limits the universe of potential passwords

Re: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread Dave Derry
This has been explained before. I think it was by Ted. The reason has to do with security. Specifying bouinds on the length of a password limits the universe of potential passwords that a cracker would need to test. And of course if he/she saw a message saying Password must be between 6 and 30

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread Nekkalapudi, Viplava
List Subject: Re: JavaScript Validation: MinLength MaxLength Functions Don't Work Can you try removing the required from the depends for password and give minlength and maxlength. Since minLength is mentioned required is not necesary. Try it and let ue know. this may be considered as a bug

Re: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread bachan s
Can you try removing the required from the depends for password and give minlength and maxlength. Since minLength is mentioned required is not necesary. Try it and let ue know. this may be considered as a bug in struts too. Thanks ! Bachan Nekkalapudi, Viplava [EMAIL PROTECTED] wrote: My

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread bachan s
submit a patch. John Hohlen (and Viplava Nekkaplapudi) -Original Message- From: Hajratwala, Nayan (N.) [mailto:nhajratw;ford.com] Sent: Thursday, October 24, 2002 3:15 PM To: 'Struts Users Mailing List' Subject: RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

RE: JavaScript Validation: MinLength MaxLength Functions Don't Work

2002-10-24 Thread Nekkalapudi, Viplava
That's what we implemented now and are going to test it. Anyway, Thanks. -Original Message- From: bachan s [mailto:bachan_anand;yahoo.com] Sent: Thursday, October 24, 2002 4:04 PM To: Struts Users Mailing List Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: JavaScript Validation

RE: Javascript Validation

2001-06-11 Thread Dudley [EMAIL PROTECTED]
GREAT! THATS EXACTLY HOW I FEEL, thanx, now i'm getting that good feeling again that what i've done is ok... -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 2:04 AM To: '[EMAIL PROTECTED]' Subject: RE: Javascript Validation On Fri

RE: Javascript Validation

2001-06-09 Thread Craig R. McClanahan
On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote: i just find it sometimes easier to move all validation off the jsp, and hence all java off the jsp. I think its just basically a personal preference. This way I'm making full use of the struts error handling model and keep all my java in

RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]
i find using struts to do validation works way better than jscript. To date i haven't used 1 line of jscript in the project. this is what we do have a look, this is one of our actionhandlers /** * Used to update the return of a specific taxpayer * @author: Dudley Butt * */ public class

RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]
things, just depends on what u need to do and whats your preference Thanx for all the help guys -Original Message- From: Eelco van Kuik [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 11:32 AM To: '[EMAIL PROTECTED]' Subject: RE: Javascript Validation I don't understand why Dudley

RE: Javascript Validation

2001-06-08 Thread David Winterfeldt
Don't forget that any client validations you do using JavaScript should be duplicated on the server side because there is no guarantee the JavaScipt will run. The client have have it turned off or the script could fail depending on the browser. I have started work on a validation framework that

RE: Javascript Validation

2001-06-08 Thread Dudley [EMAIL PROTECTED]
thanx , will check it out -Original Message-From: David Winterfeldt [mailto:[EMAIL PROTECTED]]Sent: Friday, June 08, 2001 4:56 PMTo: [EMAIL PROTECTED]Subject: RE: Javascript Validation Don't forget that any client validations you do using JavaScript should

RE: Javascript Validation

2001-06-08 Thread SWiecek
Winterfeldt To: [EMAIL PROTECTED] dwinterfeldt@cc: yahoo.comSubject: RE: Javascript Validation

RE: Javascript Validation

2001-06-08 Thread David Winterfeldt
: Try a recent nightly build. --Abraham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 3:52 PM To: [EMAIL PROTECTED] Subject: RE: Javascript Validation When I try to run this, I get this error: /registration.jsp