---- forwarded message attached ---


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
--- Begin Message ---
Hi,
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();
trList.add(tr);
}
trForm.setTestResultList(trList);

Form:
=====
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);
}


JSP
====

<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);
%>

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

<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]%>"/>
Pass
</html:radio>
<html:radio name="histObj" property="statusString"
value="<%=TestHistory.getStatusStrings()[TestHistory.BLOCK]%>"/>
Block
</html:radio>
<html:radio name="histObj" property="statusString"
value="<%=TestHistory.getStatusStrings()[TestHistory.NOTRUN]%>"/>
NotRun
</html:radio>

</td>
</tr>
</logic:iterate>

________________________________________________
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]



--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to