RE: How to validate manually?

2002-11-07 Thread Wendy Smoak
Kris wrote: > Check out Action.saveErrors for saving the errors returned from your call to > validate: > saveErrors(request, null); // clear current errors if you want > ActionErrors er = form.validate(mapping, request); > if ((er != null) && (!er.isEmpty())) { > saveErrors(request, er); > forwa

Re: How to validate manually?

2002-11-07 Thread Kris Schneider
Whoops! You also asked where the Struts source code is. For 1.1 it's in: RequestProcessor.processValidate And I think to be correct for 1.1 I should've said: forward = mapping.getInputForward() Quoting Kris Schneider <[EMAIL PROTECTED]>: > Check out Action.saveErrors for saving the errors retu

Re: How to validate manually?

2002-11-07 Thread Kris Schneider
Check out Action.saveErrors for saving the errors returned from your call to validate: saveErrors(request, null); // clear current errors if you want ActionErrors er = form.validate(mapping, request); if ((er != null) && (!er.isEmpty())) { saveErrors(request, er); forward = new ActionForward(

How to validate manually?

2002-11-07 Thread Wendy Smoak
Because I need to allow the user to come and go from the form before the "final" submit, I need to hold off on validation until that point. So I've got validate="false" (that was a gotcha!) in the tag and I'm now in my LookupDispatchAction doing the validation manually: How does this look?