Just in case anyone is interested, I worked around this problem by using Query to parse the parameter list and find out how many objects need to be instantiated. Basically, I count the number of different indices I get into a particular object and then instantiate that many objects before calling BeanUtil.setProperties(). That OGNL indexed setters and getters thing is cool, but it doesn't really help in this case. But yea, thanks so much for the help guys. And I don't imagine that adding this functionality to OGNL would be that complicated, right?
Yoway Buorn Software Engineer Imagery Systems Engineering GENERAL DYNAMICS Advanced Information Systems 112 Lakeview Canyon Road Thousand Oaks, CA 91362-5027 Tel 805 497 5074 Fax 805 497 5050 [EMAIL PROTECTED] -=[ c o l l e c t i v e - b a s s - j u n e 2 0 ]=- -----Original Message----- From: Drew Davidson [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 5:38 AM To: Pat Lightbody; [EMAIL PROTECTED] Subject: Re: [OS-webwork] Newbie: Please help with array/list of objects ... Pat Lightbody wrote: >I don't think is yet supported by Ognl. The Ognl mailing list has been VERY >quiet lately... it's starting to worry me a bit... > >Drew? You still around? Need any help? :) > > I'm alive :-) I had to take a job a while back. Contracts were getting few and far between. I guess OGNL has suffered a little from that. I'll be back in the groove soon and ready with more OGNL enhancements. BTW, the indexed getters and setters are supported by OGNL. Just use index notation: public class SomeObject { public Kardon getKardon(int index); public void setKardon(int index, Kardon kardon); } SomeObject o; Kardon k; Ognl.getValue("kardon[2]", o); Ognl.setValue("kardon[0]", o, k); This will call getKardon(2) an setKardon(0, k), respectively. - Drew -- +---------------------------------+ < Drew Davidson | OGNL Technology > +---------------------------------+ | Email: [EMAIL PROTECTED] / | Web: http://www.ognl.org / | Vox: (520) 531-1966 < | Fax: (520) 531-1965 \ | Mobile: (520) 405-2967 \ +---------------------------------+ ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork