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
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
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(
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?
4 matches
Mail list logo