This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding ActionErrors

 
Rick Charles
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic