Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ArrayList in Struts 1 ActionForm Indexed Getter Not Found

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an ActionForm (RevisionActionForm) that I am populating from DB2 and displaying on a page. This form has various fields and a class that contains several other classes and ArrayLists. Right now I am receiving the following message when attempting to load the page:

No getter method for property: "revisionData.ReasonsData" of bean: "revisionBean"



The following are relevant code segments (I have omitted what I feel is irrelevant in order to reduce this post).

JSP


ActionForm


RevisionTO (Holds ArrayList)


On a side note:
If I use simple getter and setters like the following:

The page loads fine and everything displays as I would expect, however when the page is submitted the form no longer has the ArrayList elements (all other fields are loaded as expected). I am assuming that the problem stems from the fact that the ArrayList is built, but no elements exist for the values to be stored in.

I have been researching on the net and experimenting for the last week without success. I apologize if this is obvious but I am a bit rusty at Java and new to Struts. Any and all help would be appreciated.

 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic