dcsimg

select tag and options tag. How do I use the same info, but different variables?

Ted Husted

HTML does allow parameters with duplicate name, and Struts will captures those like any other property if an array is used.


private String[] spec = {"",""};
public String[] getSpec() {
    return this.spec;
}
public void setSpec(String spec[]) {
    this.spec = spec;
}

HTH -Ted