Hi John,

Sorry - the code on the page is misleading - the attachment I posted is right at
the bottom, but I am attaching it here again.

Things I would check:
- form bean in session scope
- correct getters / setters, including the getObjectFromList(index i)
- carefully check all naming, including capitalization for appropriate
getters/setters

Let me know if the example doesn't work/help - although I am off for a month
from tomorrow!

Cheers,

Dave
(See attached file: indexedexample.zip)




"John Kowalik" <[EMAIL PROTECTED]> on 12/05/2001 11:30:28 AM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List"
      <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  RE: HELP with accessing indexed, nested properties in Action



Dave,

  I still can't get this to work.  I'm not sure which code on that page I
should be using?  Can you send me your source files from this example?  I
would REALLY appreciate it.

  No matter what I seem to do, whenever I sumit the form, the Action can get
all the 'normal' properties out of the form, but when I try to access the
Array (or Vector) of beans, it always comes back as non-null, but with a
size of 0.

Thanks for any help you can provide,
--John

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 12:02 PM
To: Struts Users Mailing List
Subject: Re: HELP with accessing indexed, nested properties in Action




I posted working example a while back.  see
http://www.mail-archive.com/[email protected]/msg12084.html

HTH,

Dave





"John Kowalik" <[EMAIL PROTECTED]> on 11/30/2001 09:45:39
AM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List"
      <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  HELP with accessing indexed, nested properties in Action




  I have search the archive and seen this bounced around, but can't seem to
find a complete working example. I have:

FormBean where one property is an Array of SomeBean;

SomeBean has three properties, two int, one string;

FormBean inits properly with an Array of SomeBean (via another Action);

form.jsp iterates over array of SomeBeans, creates indexed text input boxes.
These display just fine.

When I submit the form, the Action can't get at (or I don't understand how
to access) the SomeBean Array.  If I kick back to the form, the other form
fields keep any changed values, but the SomeBean Array goes null.

  I've been banging my head on this forever, so I would really appreciate
any help!  I've got the nightly build from 11/28/01 running

Thanks,
--John


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








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




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





Attachment: indexedexample.zip
Description: .ZIP File

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

Reply via email to