struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sashi Ravipati" <>
Subject Re: Logic:iterate
Date Tue, 10 Jun 2003 15:23:17 GMT
In here he talk abt indexed properties . Could not understand 

You form bean class will look like this:
public class MyFormBean extends ActionForm {
  private List fPersonList;
  public List getPersonList() { ... }
  public void getPerson(int index) { ... }


>>> 06/10/03 11:16AM >>>
This is similar to what I am trying to accomplish


>>> 06/10/03 09:43AM >>>
This is because "row" is defined on the page as a String. 
returns an array of String)

Based on the jsp snippet you've provided, I'm not understanding what you
trying to do.

Can you explain further?

James Mitchell
Software Developer/Struts Evangelist

----- Original Message -----
From: "Sashi Ravipati" <>
To: <>
Sent: Tuesday, June 10, 2003 9:33 AM
Subject: Logic:iterate

i have the following code in my .jsp

<TABLE id="mytable">
    <logic:equal property="amount" name="addRateForm" value="1">
          <logic:iterate id="row" name="addRateForm"  
           <td><html:text name="row" property="firstName" /></td>
           <td><html:text  property="firstName" /></td>

in my action form I have
   private String[] FirstName={};
   private String[] iterator={"",""}; // For testing i initialised to 2

public String[] getFirstName(){
    return FirstName;

  public void setFirstName(String[] newName){
    FirstName = newName;

public String[] getIterator() {
    return this.iterator;
public void setIterator(String iterator[]) {
    this.iterator = iterator;

The above table can have multiple rows. When the page is first loaded
row is displayed, the user can click on a addrow button to create
Once he is done he will click submit, I would like to submit the page
reload the same page with all the details again in the table

It throws the following error--

Error Message: No getter method for property firstName of bean row  (I
the get and set methods in my action form)

I am new to struts and I think I am missing some thing. PLS help


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message