llya, Let me first confess that I am newbie to Struts! I use RowSetDynaClass (rsdc) to copy the contents of a ResultSet. and rsdc.getRows() returns a List of DynaBeans. I need to iterate this list now. Since the list contains DynaBean-s, I believe you dont need to write getter methods .. Or am I totally wrong? Any solutions.
My code is same as the one explained here. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg53068.html TK ----- Original Message ----- From: "Sterin, Ilya" <[EMAIL PROTECTED]> To: "'TK '" <[EMAIL PROTECTED]>; "''Struts Users Mailing List' '" <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 12:54 PM Subject: RE: bean:write - No getter method for property > Can we see the class, what happens is that bean:write will call > employee.getEmpname so if you don't have the getEmpname function is your > bean class, that explains it. > > Ilya > > -----Original Message----- > From: TK > To: 'Struts Users Mailing List' > Sent: 1/16/03 10:22 AM > Subject: 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-beanuti > ls > (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: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>