[Javascript] struts form using javascript code

Chris Tifer christ at saeweb.com
Wed Mar 3 12:10:19 CST 2004


> You're right. I've never run into that before, but it feels like
> an implementation bug to me. An Array length of 1 *is* legal.

Yes, that's true, but there is no array here. That's what I'm trying to get
across. There is no collection (your array) of objects. There is only one.
Once it becomes a collection you can reference it as though it were an
array. But until then, it is just one instance.

I believe this has been the implementation for quite some time and haven't
heard of them working on any changes to this.  All it means is you need to
do a little more object-based checking to see how to handle it.

Chris Tifer




More information about the Javascript mailing list