Jeremiah wrote:
> In my ActionForm, I've written the following setter method:
> public void setSerialNumbers(int poDetailId, String[] serialNumbers) {
>       for (int i = 0; i < serialNumbers.length; i++) {
>               System.out.println("poDetailId = " + poDetailId);
>               System.out.println("serialNumbers[i] = " +
serialNumbers[i]);
>       }
> }

Just based on what I've read (I've never managed to get indexed properties
working) shouldn't the setter be:

 public void setSerialNumber(int index, String value)
    { serialNumbers[index] = value; }

(That's from: http://jakarta.apache.org/struts/faqs/indexedprops.html )

But from:
http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/index
edAttr.html

I get the impression that the "incoming" request parameters should have the
form
serialNumber[1], serialNumber[2]
but I don't see how you'd do that with a select list.  The second link has
an example of several text boxes but it does not show the 'set' method in
the Form.

I'm interested to find out how to do this, so far I have not found a
complete example, just hints here and there.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to