DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16634>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16634

reuiredif ignores missing property

           Summary: reuiredif ignores missing property
           Product: Struts
           Version: 1.1 Beta 3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If you misspell the name of a dependent property it is ignored by the validator.
The validator uses the ValidatorUtil.getValueAsString method to get the value
from the dependent property. The returned value is null because the property
doesn't exist and the ValidatorUtil.getValueAsString method catches all
exceptions (e.g. NoSuchMethodException)

Shouldn't the validator throw a exception if a property doesn't exist? What if I
change the name of a property and then correct the jsp but forgot to update
validate.xml.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to