> <html:submit ... onclick="validate();"> The problem could be that you aren't returning anything.
Try doing something like this: onclick="return validate();" Then: function validate() { if (...) // fails return false; } // else return true; } So, you return a Boolean from the validate function that is then returned to the "onclick" event. False means halt the normal event propagation which, in this case, is form submission. > I don't know if I can do this with dispatch action. Well, if I understand you correctly, you are having problems with the Javascript validation. Or, are you having problems with the ActionForm's validate method. If it's the latter, then maybe this will work for you: public Dispatch ... { public dispatchedActionWithValidation(...) { ActionErrors errors = form.validate(mapping, request); if (errors != null && !errors.isEmpty()) { saveErrors(request, errors); return mapping.findForward("errorPage"); } ... } Then in your struts-config action mapping, you would set: validate="false" I can explain why you might want to use this method, if you like. - Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]