Can I use multiple HTML form elements with the same name?
Struts Questions and Answers
(Continued from previous question...)
43. Can I use multiple HTML form elements with the same name?
Yes. Define the element as an array and Struts will autopopulate it like any other.
private String[] id= {};
public String[] getId() { return this.id; }
public void setItem(String id[]) {this.id = id;}
And so forth
(Continued on next question...)
Other Interview Questions
|