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
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
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
3 matches
Mail list logo