Hello,
I am using struts 1.2.7 and am having trouble outputing error messages for
specific fields.
If I have the following (in a form):
html:input property=name /
and in my action I do something like:
messages.add(name, new ActionMessage(error.name.required));
Problem solved... must be Friday.
Aladin
Hello,
I am using struts 1.2.7 and am having trouble outputing error messages for
specific fields.
If I have the following (in a form):
html:input property=name /
and in my action I do something like:
messages.add(name, new
Yes it's Friday indeed (TG). For the benefit of you out there
searching the archives, you can accomplish this by using html:errors
property=name / . You can get more information here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Hubert
On 11/18/05, Aladin Alaily [EMAIL
Yeah, I do it this way:
In the ApplicationResources.properties:
errors.email=font color=redstronginvalid e-mail address./strong/font
And in the jsp:
tr
td width=200 align=rightbean:message
key=label.screen3.emailAddress/:/td
tdhtml:text property=emailAddress//tdtdhtml:errors
-
From: [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, November 18, 2005 3:52 PM
Subject: RE: Is there an easy way to print error messages
Yeah, I do it this way:
In the ApplicationResources.properties:
errors.email=font color=redstronginvalid e-mail
address./strong/font
5 matches
Mail list logo