You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by TK <tk...@hotmail.com> on 2003/01/16 18:22:55 UTC

bean:write - No getter method for property

Hi,

Can someone tell what is wrong in this code. The write tag gives 'No getter
method for property empname in bean... '

 <logic:iterate id="employee" name="employees" scope="request"
type="org.apache.commons.beanutils.DynaBean">
        <bean:write name="employee" property="empname"/>
  </logic:iterate>

Below code works fine. I just use employeebean.get method and it seems to
work fine.

 <logic:iterate id="employee" name="employees" scope="request"
type="org.apache.commons.beanutils.DynaBean">
           <%=employee.get("empname")%>
  </logic:iterate>

I am using org.apache.commons.beanutils.RowSetDynaClass downloaded from
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-beanutils
(and Struts 1.1)

I am using RowSetDynaClass as explained in this archive
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg53068.html

Any help on this would be appreciated.

TK

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