aspose file tools*
The moose likes Struts and the fly likes Exception while using Indexed properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception while using Indexed properties" Watch "Exception while using Indexed properties" New topic
Author

Exception while using Indexed properties

Raj Chukka
Greenhorn

Joined: Apr 09, 2007
Posts: 22
Hi,

In FormBean i have a List of DTO objects and in DTO i have 2 indexed properties.

In DTO, iam using non-indexed properties and indexed properties in my DTO like below.

private String a;
private String b;
private String c[] = new String[10];
private String d[] = new String[10];


public void setC(int index, String string) {
a[index] = string;
}

public void setD(int index, String string) {
b[index] = string;
}

------------------------------------------------------
A | B | C1 | D1
C2 D2
C3 D3
------------------------------------------------------

I have to display the records in the above format.


Can someone tell me how to do this (this is nested indexed property).
Thanks,
Raj Chukka

[ May 01, 2008: Message edited by: Raj Chukka ]
[ May 01, 2008: Message edited by: Raj Chukka ]
 
 
subject: Exception while using Indexed properties