Hi Guys,

http://struts.apache.org/faqs/indexedprops.html

Subsection "List-Backed Indexed Properties" contains this code:

package org.apache.struts.webapp.exercise;
import org.apache.struts.action.ActionForm;
public class StringBean2 extends ActionForm {
    private String strAry[] = { "String 0", "String 1", "String 2",
"String 3", "String 4" };

    public java.util.List getStringIndexed(int index) { 
        return java.util.Arrays.asList(strAry);
    }
}


It seems to me that the getStringIndexed method shouldn't have a parameter.

Tamas

Reply via email to