• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

Creating a table of radio buttons

Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create a table of radio buttons but have been unsuccessfully.
I am getting the following exception

[ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method for property testResultList of bean testResultForm' javax.servlet.jsp.JspException: No getter method for property testResultList of bean testResultForm at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968) at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277) at
Below is my code

In my Action I am
Iterator it = resMap.values().iterator();
logger.debug("Number of TestResult: " + resMap.size());
while (it.hasNext()) {
TestResult tr = (TestResult) it.next();

public class TestResultForm
extends ActionForm {
private Logger logger = Logger.getLogger(this.getClass());

private ArrayList testResultList = new ArrayList();

public ArrayList getTestResultList(){
return this.testResultList;

public void setTestResultList(ArrayList testResultList) {
this.testResultList = testResultList;

public TestResult getTestResultList(int index) {
return (TestResult) this.testResultList.get(index);

public void setTestResultList(int index, TestResult tc) {
testResultList.set(index, tc);


<logic:iterate id="testResultList" name="testResultForm" property="testResultList" type="java.util.ArrayList" scope="request">
<bean efine id="tcid" name="testResultList" property="testCaseId" type="java.lang.String"/>

TestCase tCase = proj.getTestRoot().searchTestCase(tcid);
pageContext.setAttribute("tCase", tCase, PageContext.PAGE_SCOPE);

<td class="primary2" valign="top">
<bean:write name="tCase" property="name"/>
<td class="primary2" valign="top">
<bean:write name="tCase" property="desc"/>

<bean efine id="histObj" name="testResultList" property="lastHistoryObject" type="com.sun.ncqa.data.TestHistory"/>
<bean efine id="tid" name="tCase" property="id" type="java.lang.String"/>
<html:radio name="histObj" property="statusString" value="<%=TestHistory.getStatusStrings()[TestHistory.PASS]%>"/>
<html:radio name="histObj" property="statusString" value="<%=TestHistory.getStatusStrings()[TestHistory.BLOCK]%>"/>
<html:radio name="histObj" property="statusString" value="<%=TestHistory.getStatusStrings()[TestHistory.NOTRUN]%>"/>

    Bookmark Topic Watch Topic
  • New Topic