Hi,
 
I saw this error but probably in a different, though related context.
For eg, in my case, it was occuring as I declared my form as bookForm in 
struts-config.xml but in my book.jsp, it was <html:for name = "booksForm"....
So may be checking this stuff in struts-config.xml may help....
 
Thanks.

Max Kovalenkov <[EMAIL PROTECTED]> wrote:
Hi!

I have a custom validator which works fine, but when the 
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



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


---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster.

Reply via email to