commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <tom...@gmail.com>
Subject Re: [BeanUtils] Handling array creation?
Date Wed, 07 Sep 2005 19:48:11 GMT
On 9/7/05, Frank W. Zammetti <fzlists@omnytex.com> wrote:

> I kind of assume this isn't possible based on what I've seen, but figured
> I'd ask none the less...
> 
> Is it possible with BeanUtils (or otherwise) to create a new array as a
> member of a bean?  What I mean is, if I have this bean:
> 
> class myBean {
>   private String[] myArray;
> }
> 
> Can I do the equivalent of this:
> 
> class mainClass {
>   myBean b = new myBean();
>   b.myArray = new String[5];
> }
> 
> Obviously that's not valid, but pretend it would work, I need to write
> *real* code that *will* work to do the equivalent of that.  I haven't seen
> anything in BeanUtils that would do it, hoping I'm missing something.

Could you perhaps explain what is the problem with the above ? Perhaps
you could provide some (pseudo, hypothetical) code using BeanUtils
that shows how you would do what you want to do ?

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message