recently upgraded a webapp from
struts 1.1b2 to 1.2.4, code that previously worked:
now chokes:
spent quite a lot of time looking at the interfaces, consulting struts
doc, scratching head, etc. googled the issue and found lots of cases where the property was incorrectly specified, breaking the introspection, or the get and set dealt w/ diff types. but that's not the case here.
tried several things, trying to get head around the problem. this variation works fine, but does not explain why bean:write cannot find the appropriate getter:
added other attrs to the tag based on struts doc. still, the error persists:
this worked. the toString of the activity was called, but still the tru answer was not revealed:
here is the interface and impl for reference (javadoc, etc removed):
found a
bean dump util on struts wiki. used it in
jsp, hoping to get insight:
the util uses java.beans.Introspector.getBeanInfo(). it resulted in this output (and then followed by the same "No getter..." exception when it hit the bean:write):
doing this did not shed new light on the issue. according to the
Java bean inspection classes, everything looks fine. further, the code did work previously. any help is greatly appreciated!
[ October 27, 2004: Message edited by: Erick Reid ]
[ October 27, 2004: Message edited by: Erick Reid ]
[ October 27, 2004: Message edited by: Erick Reid ]
[ October 27, 2004: Message edited by: Erick Reid ]
[ October 27, 2004: Message edited by: Erick Reid ]
[ October 27, 2004: Message edited by: Erick Reid ]