Satish,


The problen occurs because of the "indexed" getter/setter.  if you change
the name from getStatus(int Index) to getOneStatus(int index) (or some
different name that you like).  The problem will be resolved.

The indexed getter is used by Struts when your form is submitted.

Nick




|---------+---------------------------->
|         |           Satish Satish    |
|         |           <satish_kulkarni@|
|         |           ureach.com>      |
|         |                            |
|         |           05/18/2004 02:03 |
|         |           PM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       [EMAIL PROTECTED]                                                  
                                     |
  |       cc:                                                                          
                                          |
  |       Subject:  No getter Method  for property                                     
                                          |
  
>------------------------------------------------------------------------------------------------------------------------------|




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]






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

Reply via email to