If you're using 1.1, try passing ActionError objects instead of ActionMessage
objects. The syntax should be the same, you'll just use a different object.
Hubert
--- Max Kovalenkov <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have a custom validator which works fine, but when the <html:errors/>
> tag is being executed, it throws a ClassCastException. My validator has
> the following line for adding to error messages:
>
> errors.add( field.getKey(), new ActionMessage("errors.dates", date1,
> date2));
>
> If validation passes, the above line is not executed, and everything
> works(even if there are errors in other fields of the form), the tag
> prints errors normally.
> I am puzzled. Could anyone suggest the reason for this exception? Thanks.
>
> Max
>
>
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]