That's what I had in the first place, and it did NOT work. Refer to the code in TestBean.java for the html-select examples, and you'll see that the individual element getter/setter methods have TOTALLY different names.
As far as struts is concerned, you MUST drop the "s" - Struts does not use the indexed methods at all, but if you want to, you have to change the name because as Laird so accurately states (paraphrased:) "Struts is too stupid to see the difference in method signatures, it only looks at the name" and you will most certainly get "javax.servlet.ServletException: BeanUtils.populate" (flame on, folks) ----- Original Message ----- From: "Kris Schneider" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, February 24, 2003 12:48 PM Subject: RE: [Unverified Sender] RE: [OT] (Slightly OT) Accessing individ ual array elements (was Re: <html:select> "multiple" problems) > You shouldn't drop the "s". You should have: > > public String[] getIds() > public void setIds(String[] ids) > > public String getIds(int i) > public void setIds(int i, String id) > > See: > http://java.sun.com/products/javabeans/docs/spec.html (Section 7.2) > http://java.sun.com/docs/books/tutorial/javabeans/properties/indexed.html > > Although, I'm not really sure if Struts makes use of the indexed methods... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]