struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "João Paulo G. Batistella" <jpa...@cit.com.br>
Subject Re: No getter method for property... but present
Date Tue, 05 Feb 2002 15:01:52 GMT
You are using List for get and String for set method. You should use the
same type for both methods.

JP

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

Tom Goemaes wrote:
> 
> 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:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message