Hello All,

I have recently migrated our application from struts 1.1 to 1.2.4.  There is 
some confusion in my mind over use of ActionErrors and ActionMessages.

1. Since ActionError is depricated, I have changed ActionError to 
ActionMessage in my code as recommended.

2. ActionErrors is still being used to propogate error to the front end 
using ActionErrors.add(String, new ActionMessage())

3. saveErrors(HttpServletRequest request, ActionErrors errors) is depricated 
and its recommended that we use saveErrors(HttpServletRequest request, 
ActionMessages errors).  How do I fit this in?  as my errors are still being 
reported as ActionErrors.  Do I need to change from ActionErrors to 
ActionMessages now?  If so how will that effect the validations (i have some 
custom validations put in Form.validate method as well).

4. If I need to use saveMessages then how do I distinguish between errors 
and messages.

5. Currently I am using <html:errors/> at the appropriate places in my jsp 
pages, how will that be effected, and what is the desired tags and their 
usage given the change of things.


Regards,
Muhammad Momin Rashid. 




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

Reply via email to