For me this is what I usually do: JSP: <logic:iterate id="status" indexId="index" name="testResultForm" property="status" type="java.util.ArrayList" scope="session"> <bean:define id="currStatus" name="status"/> <% System.our.println("the current status in the loop is = " + currStatus); %> </logic:iterate>
Basically i jsut define a bean currStatus that represents the current status, from the array list.
Hope this help, -inoel-
Satish Satish wrote:
Hi, I have tried a lot of stuff but I am still getting the same exception..need help... I am getting the following exception [ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method for property status of bean testResultForm' javax.servlet.jsp.JspException: No getter method for property status of bean testResultForm at
Below is not my code snippet struts-config.xml:
<form-bean name="testResultForm" type="com.sun.ncqa.action.qa.mytc.TestResultForm" scope="session"/>
<action path="/browseview" type="com.sun.ncqa.action.view.BrowseViewAction" name="testResultForm" validate="false" scope="session"> <forward name="Input" path="/tssearch.do"/> <forward name="success" path="/tssearch.do"/> <forward name="delegate" path="tile.delegateview"/> <forward name="execute" path="tile.executetc"/> <forward name="failure" path="/invalidBuild.do"/> </action>
JSP: <logic:iterate id="status" indexId="index" name="testResultForm" property="status" type="java.util.ArrayList" scope="session"> <% //logger.debug("Status at " + index + ": " + status[index]); logger.debug("Status at " + index); %> </logic:iterate>
FORM: public class TestResultForm extends ActionForm { private Logger logger = Logger.getLogger(this.getClass());
private ArrayList status = new ArrayList();
public ArrayList getStatus(){ return this.status; }
public void setStatus(ArrayList status) { this.status = status; }
public String getStatus(int index) { return (String) this.status.get(index); }
public void setStatus(int index, String status) { this.status.set(index, status); }
________________________________________________ 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]