struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalpesh modi <>
Subject action based client side validation
Date Mon, 28 Jun 2004 15:32:42 GMT
I made changes to <html:javascript> tag for version

And sorry about the typo in the previous mail. It is
actually validator-rules.xml and not validation.xml

The change that the validator-rules.xml needs is the
method name needs to be passed to the javascript


function validateRequired(form,actionMethod) {
                var isValid = true;
                var focusField = null;
                var i = 0;
                var fields = new Array();
                oRequired = new actionMethod();

Here actionMethod represents the corresponding method
name for a particular action.
So all the javascript functions in the
validator-rules.xml needs to be modified to take two
parameters just as above. This is the only change that
needs to be made to the validator-rules.xml


(703)506-8229 X-3308 (Work)
(203)676-9385 (Mobile)

Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message