Thanks Dave for your answer. I have just one more question : I'm not sure
about the methods in ActionSupport : addFieldError(), addActionError() and
addActionMessage().
I suppose addFieldError() is to add an error link to a property of the form
(view side),
addActionError() is to add a "global" error to the the action, but not
linked to a property,
but addActionMessage()? what is the difference between "ActionError" and
"ActionMessage"? The error don't validate the form and the message does? But
in this case where can I show the "ActionMessage"?
Thanks.

Sebastien

On 10/10/06, Dave Newton <[EMAIL PROTECTED]> wrote:

> From: Sébastien LABEY [mailto:[EMAIL PROTECTED]
> But with Struts 2, I cannot find how to build these
> ActionErrors / ActionError...

ActionSupport exposes getFieldErrors for access to the field-specific map
of errors (key: field name, value: *List* of String error msgs for that
field).

Dave


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


Reply via email to