/[Apache-SVN]
ViewVC logotype

Revision 159609


Jump to revision: Previous Next
Author: niallp
Date: Thu Mar 31 16:10:16 2005 UTC (19 years, 4 months ago)
Changed paths: 1
Log Message:
Port Improved ValidWhen Exception Handling to 1.2.X Branch

Improve ValidWhen Exception Handling - exceptions are now logged and validation fails returning an error message with details of the error.

The problem with ValidWhen is that currently if there is an exception processing the 'test' expression from the validation.xml  then it just prints a stack trace and returns 'false'. However returning 'false' doesn't cause the validation to fail - for validation to fail and error message also needs to be added. This causes alot of confusion for users, since if they mess up the 'test' expression, then validation passes! This change rectifys that.

Changed paths

Path Details
Directorystruts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/validator/validwhen/ValidWhen.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26