Eric Chow wrote:

Hello,

ActionError and ActionErrors are deprecated in Struts1.2,

We should use ActionMessages and ActionMessage to replace them.

But how can we identify which message is normal message and which one
represents error message ???

Use Action saveErrors( request, ActionMessages )

as opposed to

Action saveMessages( reqeust, ActionMessages )

So typically in an Action method (execute or dispatch method) you may have two differnt ActionMessages...

ActionMessages messages; and
ActionMessages errors;

Then you add them as appropriate and use the appropriate saveErrors or saveMessages method in Action before forwarding.

--
Rick

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



Reply via email to