I have a DTO that may contain a Guarantor[].
Here is my code that keeps giving me an "null
java.lang.ArrayIndexOutOfBoundsException" when I do not have a Guarantor[0]
<logic:present name="creditApplicationDto" property="guarantors">
<logic:notEmpty name="creditApplicationDto"
property="guarantors">
<bean:write name="creditApplicationDto"
property="guarantors[0].firstName"/>
<!--< bean:write name="creditApplicationDto"
property="guarantors[0].lastName"/>-->
</logic:notEmpty>
<logic:empty name="creditApplicationDto"
property="guarantors">No Guarantors </logic:empty>
</logic:present>
What am I doing wrong to check for the existance of 1 or more Guarantors in this array?
---
> Thanks...
> Mick Knutson
>
> 525 Market Street, SF, CA 94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]