struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Lapenne" <>
Subject Re: html:error tag
Date Thu, 06 Jun 2002 10:13:39 GMT
There is a propertie file define in web.xml (for behind, it's located in youProject/source/  )

where you add an error to you ActionError, you do :
    errors.add("nom", new ActionError("error.modifProfil.nom.required"));

where error.modifProfil.nom.required is define in your propertie file :
    error.modifProfil.nom.required=<li>Le champ <i>Nom</i> ne peut ĂȘtre

and you have to put this 2 parameters :
    errors.header=Please correct this  :

in jour jsp file, you will put
        your text

and <html:errors/> will write
        Please correct this  :=<li>Le champ <i>Nom</i> ne peut ĂȘtre
        your text

It's what's you want ?

----- Original Message -----
From: "Schmidt, Carl" <>
To: <>
Sent: Thursday, June 06, 2002 12:07 AM
Subject: html:error tag

The docs for the property attribute of this tag state:
"Name of the property for which error messages should be displayed".
The property of what?  The bean specified by name?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message