my dog learned polymorphism
The moose likes Struts and the fly likes Regarding ActionErrors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regarding ActionErrors" Watch "Regarding ActionErrors" New topic

Regarding ActionErrors

Rick Charles

Joined: Jul 27, 2006
Posts: 25
Hi Guyz

I studied that ActionErrors is a subclass of ActionMessages.Every ActionError object consists of a property name and a ActionMessageItem which is the inner class of ActionMessages.And Every ActionMessageItem consists of a unique sequence number and a ArrayList object. I still could not understand why ActionMessageItem is declared as a inner class and what is the need for sequence number and a ArrayList object
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
What version of Struts code are you looking at? I am looking at the 1.3.5 source code and I see that ActionMessageItem has three protected properties: List list, int iOrder, and String property. It looks like an ActionMessageItem object contains a list of all the ActionMessage objects for the same property value. It looks like iOrder is the order that the items were added to the overall list.

- Brent
Rick Charles

Joined: Jul 27, 2006
Posts: 25
Hi Brent

I really dont know what version of struts i saw that but still i would like to know how it is designed in the new version compared to older versions
I agree. Here's the link:
subject: Regarding ActionErrors
It's not a secret anymore!