"indexed" with logic iterate
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Justin_Hamilton
Posted On:   Monday, May 27, 2002 07:39 AM

Hi, I'm trying to make an group of 10 text boxes that submit to an array of Strings in the ActionForm class. I have the following logic iterate statement: The following is the code in my ActionForm class: ("OrgForm") private String[] name = {"","","","","","","","","",""}; public String[] getNameList() { return this.name; } public void setNameList(String[] newValue) { this.name = newValue; } public String getName(int i) { return this.name[i]; } public void setName(int i,   More>>

Hi, I'm trying to make an group of 10 text boxes that submit to an array of Strings in the ActionForm class.



I have the following logic iterate statement:

			





The following is the code in my ActionForm class: ("OrgForm")
			
private String[] name = {"","","","","","","","","",""};

public String[] getNameList()
{ return this.name;
}

public void setNameList(String[] newValue)
{ this.name = newValue;
}

public String getName(int i)
{ return this.name[i];
}

public void setName(int i, String newValue)
{ this.name[i] = newValue;
}

When I try to run the code, I get the error:
Attribute indexed invalid according to the specified TLD

However, all the examples I've read doing something similar used "indexed." Without indexed it still doesn't work properly. Does anyone have an idea of what is wrong? Thanks in advance.    <<Less
About | Sitemap | Contact