RE: [Unverified Sender] RE: [OT] (Slightly OT) Accessing individ ual array elements (was Re: html:select multiple problems)

2003-02-24 Thread Kris Schneider
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...

Quoting Nelson, Laird [EMAIL PROTECTED]:

  -Original Message-
  From: Nelson, Laird [mailto:[EMAIL PROTECTED]
  So, to sum up, you should have:
  
public String[] getIds();
public void setIds(String[] ids);
public void setId(int i, String id);
 
 ...and public String getId(int i);
 
 Laird
 
 -
 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]



RE: [Unverified Sender] RE: [OT] (Slightly OT) Accessing individ ual array elements (was Re: html:select multiple problems)

2003-02-24 Thread Nelson, Laird
 -Original Message-
 From: Kris Schneider [mailto:[EMAIL PROTECTED]
 You shouldn't drop the s.

How right you are.  Teach me to post based off (incorrect) memory.  :-(

Laird

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