Le 10 juin 10 à 04:02, Preet K. Sekhon a écrit :
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.
Would you mind telling which lab exactly you are referring to and
inside the lab which exercise?
Michèle Garoche
--
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