Thanks!
----- Original Message -----
From: "Nelson, Laird" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:21 PM
Subject: RE: [OT] (Slightly OT) Accessing individual array elements (was Re:
<html:select> "multiple" problems)


>
> Call it public void setId(int i, String ids) instead, and you should be
all
> set.
>
> The JavaBeans specification allows there to be an "indexed setter" for an
> array property.  Indexed setters operate on a single instance of the array
> type.
>
> So, to sum up, you should have:
>
>   public String[] getIds();
>   public void setIds(String[] ids);
>   public void setId(int i, String id);
>
> Laird
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to