You are able to specify the property attribute in the errors tag. This will
allow you to pull specific messages from the ActionErrors object.
For example if you have:
errors.add("myProp", new ActionError("myprop.invalid"));
You could display the message keyed on "myprop.invalid" in the correct place
by putting:
<html:errors property="myProp"/>
in the appropriate spot in your JSP.
HTH
Dave
-----Original Message-----
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 10:57
To: Struts-User (E-mail)
Subject: display of ActionErrors
Hi,
Is there any way to separate individual error messages in a jsp form? The
sort of behaviour I'm looking for is to place the error messages
(ActionErrors) next to the errant fields rather than a single block. Or is
the only option to display all of the errors in one place using
<html:errors/> tag?
Cheers
Nathan
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.
http://www.capco.com
***********************************************************************