File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regarding ActionErrors" Watch "Regarding ActionErrors" New topic
Author

Regarding ActionErrors

Rick Charles
Greenhorn

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
Greenhorn

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
 
Consider Paul's rocket mass heater.
 
subject: Regarding ActionErrors