Your ActionMessage should contain the key to a message in some message
resources, rather than the actual message itself. Something like...
errors.add(ActionErrors.GLOBAL_MESSAGE, new ActionMessage(
"user.required" ) );
then define "user.required=User name is null" in your message resources.
2004 1:04 PM
To: Struts Users Mailing List <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Subject: RE: Displaying errors messages from validate in V1.2.4
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 1:47 PM
&g
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 17, 2004 1:47 PM
> To: [EMAIL PROTECTED]
> Subject: Displaying errors messages from validate in V1.2.4
>
>
> Hi,
> I cannt find the correct setup for to display
> error messages from a fo
3 matches
Mail list logo