Did you switch to ActionErrors.GLOBAL_KEY or change your JSP code? 1) If you changed your JSP to <html:errors property="ERROR_KEY"/> or something, keep this in mind: I use a class called "Constants" for each web app and refer to Constants.LOGINERROR_KEY in my code, but I have to make sure that my JSP has the correct text. What is the name of the property/key you're assigning the error to?
2) If you shifted to ActionErrors.GLOBAL_KEY, are you sure your locale is right and your Resource bundle has the appropriate text key? Try throwing this code in your JSP: <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application"> <font color="red"> ERROR: Language independent messages not loaded -- contact administrator for assistance. </font> </logic:notPresent> ----- Original Message ----- From: "Johan Kumps" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 4:25 PM Subject: RE: Validation problem > Thanks for your help. > > My jsp is displaying : ???nl_BE.error.invalid.email??? > > Still something wrong. It seems my key is not found. > > Can you help me again please? > > Kind regards, > > -----Oorspronkelijk bericht----- > Van: Ian Hunter [mailto:[EMAIL PROTECTED]] > Verzonden: donderdag 20 februari 2003 22:15 > Aan: Struts Users Mailing List > Onderwerp: Re: Validation problem > > > When you add your error message to the errors object, you are specifying > Action.ERROR_KEY instead of ActionErrors.GLOBAL_ERROR -- so you'd have to do > something like > > <html:errors property="something"/> to get that SPECIFIC error. If you > switch to ActionErrors.GLOBAL_ERROR it will display all of them with just > <html:errors/> > > > ----- Original Message ----- > From: "Johan Kumps" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, February 20, 2003 4:02 PM > Subject: Validation problem > > > > Hi all, > > > > I have a problem displaying error messages. Why is my message not > displayed? > > Am I doing somthing wrong? > > > > Please help me, I'm loosing time with this one... > > > > Please consider following code : > > > > Form class : > > > > ... > > > > public ActionErrors validate(ActionMapping mapping, HttpServletRequest > > request) { > > ActionErrors errors = new ActionErrors(); > > > > if(email == null || !checkEmail(email)) { > > errors.add(Action.ERROR_KEY, new > > ActionError("error.invalid.email")); > > } > > return errors; > > } > > > > > JSP : > > > > <html:errors/> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003 > > --- > This mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.454 / Virus Database: 253 - Release Date: 10/02/2003 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]