You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Shiell <Ja...@msd.govt.nz> on 2002/01/28 01:00:49 UTC
[PATCH] Struts masks errors when required field is missing
Hi,
We have found the a wee problem with the struts validator and now
validator-commons. Problem is that when you have a required field
missing, and an error in another field, *all* errors are reported as
"Required field missing", masking other errors.
To solve this, a wee patch. Unfortunately some of the tabbing changed,
so Diff made the 7 or 8 lines of code into a 12Kb Diff file.
The issue is that the validator drops out when a required field is
missing. This patch changes it so the validation status of each field is
stored and we only drop out if all fail.
Cheers, James