Reposting: dont know why junk charachers appear below
  I have a question about how to retrive the value from a data object in the 
form bean 
 
I have a form bean, TestForm where I declare my dataobject as 
private testdata[] data;
 
with its getter and setter
 
In my testdata class I have a String name, String address
 
Now, for me to get the values of the data object in jsp using iterate tag, how 
do I do it ? 
 
I have my formbean declared in the jsp. 
 
  I am trying to use this
 
<logic:iterate id="testdata" name="TestFormBean" property="list" 
indexId="index">
<html:select property="testdata" name="TestFormBean" indexed="true" >
<html:options property="testdata.name" name="testdata"/>;
</html:select>
</logic:iterate>
  I get this exception
javax.servlet.ServletException: No getter method available for property 
tndata.tnStatus for bean under name TestFormBean
  
Please helpme, what am i doing wrong ?
  TestFormbean looks like this
  private Testdata[] testData;
public TestData[] getTestData() {
return testData;
}
public void setTndata(Testdata[] testData) {
this.testData= testData;
}

Maya menon <[EMAIL PROTECTED]> wrote:
  > value='mypath'/>">I have a question about how to retrive the value from a 
data object in the form bean 
> value='mypath'/>"> 
> value='mypath'/>">I have a form bean, TestForm where I declare my dataobject 
> as 
> value='mypath'/>">private testdata[] data;
> value='mypath'/>"> 
> value='mypath'/>">with its getter and setter
> value='mypath'/>"> 
> value='mypath'/>">In my testdata class I have a String name, String address
> value='mypath'/>"> 
> value='mypath'/>">Now, for me to get the values of the data object in jsp 
> using iterate tag, how do I do it ? 
> value='mypath'/>"> 
> value='mypath'/>">I have my formbean declared in the jsp. 
> value='mypath'/>"> 
> value='mypath'/>">I am trying to use this
> value='mypath'/>"> 
> value='mypath'/>"> 

;



I get this exception
javax.servlet.ServletException: No getter method available for property 
tndata.tnStatus for bean under name TestFormBean


Please helpme, what am i doing wrong ?

TestFormbean looks like this

private Testdata[] testData;


public TestData[] getTestData() {
return testData;
}
public void setTndata(Testdata[] testData) {
this.testData= testData;
}




---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us.

       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Reply via email to