Do that kind of validation in your Action rather than ActionForm, that way you can use the struts exception handling.
In the Action's execute method.... if (errors from Business Delegate) { ActionErrors errors = new ActionErrors(); errors.Add(....); saveErrors(request, errors); return mapping.getInputForward(); } Niall ----- Original Message ----- From: "kimbuba" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 11, 2004 9:39 PM Subject: ValidatorForm exception handling > Hello! > > Here is my problem: > > On ActionForm validate method i have a BusinessDelagate who access some DAO > resources. > > Because of that, probably my businessdelegate will throw some kind of > exceptions i.e. MyDAOException. > Is there any kind of solution to handle such exceptions? > > On Actions i can catch my exceptions to appropriate global-exception > handlers. > > Because validate(ActionMapping mapping,HttpServletRequest request) doesn't > throw any exception i can't > go with an overwritten validate with an exception to be thrown. > If i try with a RuntimeException it will break with an "internal error" > (tomcat) > > Any ideas? > Thnax! > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]