Hi,
I have a problem that is confusing me. In my
JSP I'm using indexed properties with an array index in the end of the input name, like name[0], name[1], name[2] and so on.
i'm accessing it in my form bean the common way by using bean utils method
setName(int index,
String inputString) {
nameList.add(inputString);
}
nameList is a LinkedList of Strings.
The problem is that the values are saved in the wrong order so that in my jsp name[0] is "Alpha", name[1] is "Beta" and name[2] "Gamma" but when i iterate over the list later the results are "Beta", "Gamma", "Alpha" or something like that.
This is really bad 'cause i need to save the properties in the correct order they are in the jsp.
Is there a simple solution to this?
Thanks in advance, Erik
[ August 05, 2008: Message edited by: Erik Panzer ]