Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while using Indexed properties

 
Raj Chukka
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic