Name:
Location: Bangalore, India

Monday, March 10, 2008

How to iterate a single object which has 10 properties using struts UI tags.

In our example objIssuingBankOABank is a reference variable of IssuingBankOABean object which has 10 properties.

private IssuingBankOABean objIssuingBankOABank;

We have this property as part of RequestForm.

So we need to iterate this single object without putting it into a list and display all the values that’s part of this object.

<logic:notEmpty name="RequestForm" property="objIssuingBankOABank">
<bean:define id="IssuingBankOABean" name="RequestForm" property="objIssuingBankOABank"/>


≪bean:write name="IssuingBankOABean" property="overseasApprovalCount" />
≪bean:write name="IssuingBankOABean" property="pendingApprovalCount" />

≪/logic:notEmpty>

0 Comments:

Post a Comment

<< Home