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
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
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
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
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
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
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
;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
-
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
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
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
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
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
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
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
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
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
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
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
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
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
Winterfeldt To: [EMAIL PROTECTED]
dwinterfeldt@cc:
yahoo.comSubject: RE: Javascript Validation
:
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
23 matches
Mail list logo