You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Goemaes <to...@pandora.be> on 2002/02/05 03:56:44 UTC

No getter method for property... but present

Hi,

in my bean i have among others:

public void setEconomicActivities(String newEconomicActivities)
public List getEconomicActivities()
public void setDomains(String newDomains)
public List getDomains()

Both setters perform a tokenizer operation on the provided string, and both getters return the result of that operation.
When i iterate over the domains there is no problem, but when i try to do the same... the same way... for economic activities i get a:
'no getter method for property ... in bean ...'

<logic:notEmpty name="experience" property="domains" scope="page">
<logic:iterate id="activityDomain" name="experience" property="domains" scope="page" type="blabla">
<bean:write name="activityDomain" property="description" scope="page"/>
</logic:iterate>
</logic:notEmpty>

<logic:notEmpty name="experience" property="economicActivities" scope="page">
<logic:iterate id="economicActivity" name="experience" property="economicActivities" scope="page" type="blabla">
<bean:write name="economicActivity" property="description" scope="page"/>
</logic:iterate>
</logic:notEmpty>

any ideas what could be the cause of this? 
When i rename the setter method for economicActivities to economicActivity the exception is not thrown... Is it because the setter get a String and the getter return a list ? but howcome then that the domains getter and setter work well and do practically the same thing? 

any hints or try-outs ? 

Tom.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>