I just move my application in Struts 1.1 to Struts 1.2
I made that :
Replace all ActionError objects by ActionMessage objects
Replace all ActionErrors.GLOBAL_ERROR. by ActionMessage.GLOBAL_MESSAGE
Replace all SaveErrors(request, errors) by saveMessages(request,(ActionMessages) errors);


and all is ok

PS : excuse me for my bad english.. i am french

Niall Pemberton a écrit :

It would, but because the return type of the ActionForm's validate method is
an ActionErrors - then that method can't be simply deprecated and a new
version added. Changing the return type would create a big compatiblity
issue for alot of users and having one of the *core* API methods using a
deprecated object isn't on. Hence the decission to not deprecate it.

Niall

----- Original Message ----- From: "Pavel Kolesnikov" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 5:35 PM
Subject: Re: ActionErrors





On Thu, 16 Sep 2004 12:25:26 -0400, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:


But the one and only method of ActionErrors, add, is deprecated. And so


is


ActionErrors.GLOBAL_ERROR.

I thought we were supposed to not use ActionError or ActionErrors,


instead


handle error messages with ActionMessage and ActionMessages. Then use
saveErrors, passing it the ActionMessages object (which Struts 1.1 won't
allow). Then use <html:errors/> in the jsp page.


I think so - see


http://wiki.apache.org/struts/ActionErrorsAndActionMessages


I don't know why ActionErrors is not deprecated - IMHO it would make


sense.


Pavel

---------------------------------------------------------------------
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]





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



Reply via email to