Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
nested:iterate problem - no getter method for bean property?
posted 16 years ago
I am trying to iterate through an arrayList of beans and display each bean's properties. My bean is an inner class of an ActionForm class, and has getter and setter methods for all its properties.
The array is a property of the ActionForm and has a getter method. I also have an 'addbean' method in my ActionForm to add new beans to the array.
code is as follows:
<nested:iterate id="SiteBean" name="ListSitesForm" property="sites">
<nested:write name="SiteBean" property="siteID"/>
I am getting an exception: "javax.servlet.ServletException: No getter method for property siteID of bean SiteBean"
However, the inner SiteBean class DOES have a getter method for the siteID property.
Any help would be greatly appreciated!
posted 15 years ago
Perhaps a case-sensitive issue. Method should be getSiteID()
A good workman is known by his tools.
Nothing up my sleeve ... and ... presto! A tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
Boost this thread!
trying to use nested tags
problems with form
Trouble with indexed properties
nexted Iterate Tag syntax