Bookmark Topic Watch 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
The following response was provided in a post by Deepak Bala:

I fixed a struts error recently because of changes in the Introspector class from JDK 1.3.1_08 and above. The error looks something like this

java.lang.IllegalArgumentException: Property 'displayContracts' is not indexed

The solution is to change the struts tag from something like

bean.displayContracts['counter'].property

to

bean.indexedDisplayContracts['counter'].property

The corresponding bean should have an indexed getter and setter like below

Type getIndexed<type>(int index)
void setIndexed<type>(int index, Type T)

I just chose to add the word "indexed". It is not necessary to follow that format. The indexed getters and setters should return a type based on the index passed and the the classic getters and setters can be retained to access the variable in a normal way. This way you can access the variable with both the classic getters and the indexed getters thus solving the problem. Just posting to let others know how to solve this. For more information

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4926813




return to StrutsFaq
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic