dwinterfeldt 01/09/25 13:08:48
Modified: contrib/validator/src/share/com/wintecinc/struts/validation
Validator.java
Log:
Removed unecessary use of reflection to retrieve the value based on the Field's
property attribute. It was originally used to check if a field was required and
validation should continue, but the code was no longer necessary because of design
changes.
Revision Changes Path
1.4 +0 -14
jakarta-struts/contrib/validator/src/share/com/wintecinc/struts/validation/Validator.java
Index: Validator.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/contrib/validator/src/share/com/wintecinc/struts/validation/Validator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Validator.java 2001/09/25 18:01:39 1.3
+++ Validator.java 2001/09/25 20:08:48 1.4
@@ -253,20 +253,6 @@
Field field = (Field)i.next();
if (field.getPage() <= page && (field.getDepends() != null &&
field.isDependency(va.getName()))) {
- String value = null;
-
- try {
- if (hResources.containsKey(BEAN_KEY)) {
- Object o =
PropertyUtils.getProperty(hResources.get(BEAN_KEY), field.getProperty());
- value = (o != null ? o.toString() : null);
- }
- } catch (Exception e) {
- logger.log("Validator::validate() - " + e.getMessage());
- }
-
- //if (!field.isDependency("required") &&
GenericValidator.isBlankOrNull(value))
- // continue;
-
try {
// Add these two Objects to the resources since they
reference
// the current validator action and field