Martin,
I need to manually iterate through the messages to find out if the message is empty or not in the JSP.
Thanks,
Leonard
----- Original Message ----- From: "Laconia Data Systems" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 5:37 AM
Subject: Re: html:errors and manual iterate



Leonard-
The Action class getErrors() method returns the contents of ActionErrors or
creates new ActionMessages object
http://struts.apache.org/api/org/apache/struts/action/Action.html
Is this what you're looking for?
Martin-
----- Original Message ----- From: "StrutsUser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 8:19 AM
Subject: html:errors and manual iterate



I have a situation in which I have to add an ActionError without a message
(use it to indicate field in error on the page). If I use the generic
html:errors tag, it displays lineitems without a message. Is there a way to
iterate over html:errors to check that a message should be displayed only if
the message is not empty.
Thanks in advance for any suggestions,
Leonard



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to