IIRC, you also had a bunch of other getIds/setIds methods. This can confuse the heck out of bean introspection. Make sure you only have those 4 methods defined.
The code in TestBean that pertains to multiple selection is: private String[] multipleSelect = { "Multiple 3", "Multiple 5", "Multiple 7" }; public String[] getMultipleSelect() { return (this.multipleSelect); } public void setMultipleSelect(String multipleSelect[]) { this.multipleSelect = multipleSelect; } In this case, the indexed get/set methods are omitted, which suggests that Struts doesn't make use of them. I'm not sure what you're implying by "...you'll see that the individual element getter/setter methods have TOTALLY different names". Quoting Ian Hunter <[EMAIL PROTECTED]>: > 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] > -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]