Had installed Struts 1.2.1 on the local machine and everything runs smoothly
... except for my Struts 1.1 custom validators.

Previously, the method signature in the validator was:
  "public static boolean validateFromToDate(Object bean, ValidatorAction va,
Field field, ActionErrors oErrors, HttpServletRequest request)"

Inside the method, when validation fails, a call to oErrors would throw a
NullPointerException.
  "oErrors.add (field.getKey (), Resources.getActionError (request, va,
field));

Changing the method signature would resolve the NPE:
  "public static boolean validateFromToDate(Object bean, ValidatorAction va,
Field field, ActionMessages oErrors, HttpServletRequest request)"

Has anyone encountered this issue?

Besides this, all seems to be well (so far)!

Cheers, Chong Hin

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

Reply via email to