Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indexed Properties

 
Thara Visu
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am using struts 1.2.9 and i get the error no getter method for property submissions. (JDK 1.3)

if i remove the methods which take index as parameters, it works fine.

Where exactly is the problem?
Thanks in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the past, I've had problems with Struts not dealing with overloaded methods properly in ActionForm beans. I'm not sure if the bug has been fixed or not, but I always make it a practice to name the indexed getter and setter something different than the non-indexed ones.

In your example, I'd have a getSubmissions and setSubmissions method to deal with the entire collection, and a getSubmission and setSubmission method to deal with a single indexed entity.
 
Thara Visu
Ranch Hand
Posts: 87
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merrill.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic