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]