I think there is a bug in Validation part of the original struts-example. I kept getting this error message when I entered a wrong password or when username entered was not unique.
*org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError * It worked when I replaced new ActionMessage with new ActionError in LogonAction.java and SaveRegistration.java. errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage ("error.password.mismatch")); errors.add(ActionErrors.GLOBAL_ERROR, new ActionError ("error.password.mismatch")); wanted to check if some one else had a similar problem. Thanks, Preet. -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en