Hi Prasad and all, How come this part works <bean:define id="tForm" name="testResultForm" type="com.sun.ncqa.action.qa.mytc.TestResultForm" scope="request"/> <% ArrayList Test = tForm.getTestResult(); if(Test == null) { logger.debug("Test is null");} else { logger.debug("Test sixe: " + Test.size()); }
%> and for this section it throws exception as mentioned below <logic:iterate id="testResult" name="tForm" property="testResult" type="java.util.ArrayList"> <tr> <td> Hello</td> </tr> </logic:iterate> [ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method for property testResult of bean tForm' javax.servlet.jsp.JspException: No getter method for property testResult of bean tForm at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) at Thanks Regards, Satish ---- On Fri, 14 May 2004, Prasad, Kamakshya ([EMAIL PROTECTED]) wrote: > Hi, > > It can as well be done in struts using this > > <logic:iterate id="element" name="FooForm" property="fooBean" > indexId="index"> > <li><em> > <bean:write name="element" property="attID"/> > </em> > [<bean:write name="index"/>]</li> > </logic:iterate> > > KP > > -----Original Message----- > From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] > Sent: Friday, May 14, 2004 5:28 AM > To: Struts Users Mailing List > Subject: RE: struts logic-iterate and accessing nested index properties > > Thank you Tim. I used JSTL , that solved my problem > > -----Original Message----- > From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 13, 2004 1:58 PM > To: 'Struts Users Mailing List' > Subject: RE: struts logic-iterate and accessing nested index properties > > > > In my JSP I have coded the following > > <logic:iterate id="element" name="FooForm" property="fooBean" > > indexId="index"> <li><em><bean:write name="element" > > property='<%= "fooBean[" + index + "].attID" > > %>'/></em> [<bean:write name="index"/>]</li> </logic:iterate> > > > > When I run the JSP I get the following error > > Error 500: No getter method for property fooBean[0].attID of > > bean element > > Use JSTL: > > <c:forEach items="${FooForm.FooBean}" var="fooBean"> > <c:out value="${fooBean.attID}"/> > </c:forEach> > > > -- > Tim Slattery > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]