Re: unique field validation

2005-05-05 Thread Nathan Coast
thanks, I tried overriding the validate method and it seems to work fine. public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = super.validate(mapping, request); // if fail unique validation A

Re: unique field validation

2005-05-05 Thread Leon Rosenberg
I think this kind of validation has to be done in the business logic, behind struts. Neither in the action form, nor in the action. The business logic should throw appropriate exception, which then can be handled by struts part of the application. Regards Leon > -Ursprüngliche Nachricht

Re: unique field validation

2005-05-05 Thread Leon Rosenberg
I think this kind of validation has to be done in the business logic, behind struts. Neither in the action form, nor in the action. The business logic should throw appropriate exception, which then can be handled by struts part of the application. Regards Leon > -Ursprüngliche Nachricht