Hello
I am programming a jsp page with struts. My problem is that i have a bean like this:
private ArrayList carList = new Arraylist();
private DataFormat DF = new DataFormat();
and then other Bean DataFormat as:
private ArrayList dfList = new ArrayList();
Logic:iterate can iterate in carList but... how i can iterate throught dfList???
thanks
-
Logic iterate not sufficient (2 messages)
- Posted by: Fernando del Rio
- Posted on: July 18 2005 04:00 EDT
Threaded Messages (2)
- Maybe I caught what've said by Albert Song on July 18 2005 06:10 EDT
- Maybe I caught what've said by Fernando del Rio on July 19 2005 02:23 EDT
-
Maybe I caught what've said[ Go to top ]
- Posted by: Albert Song
- Posted on: July 18 2005 06:10 EDT
- in response to Fernando del Rio
Hi,
If your class hierarchy looks like:
[code]
class A
{
private ArrayList carList = new Arraylist();
private DataFormat DF = new DataFormat();
}
class DataFormat
{
private ArrayList dfList = new ArrayList();
public List getDfList()
{
return dfList;
}
}
[/code]
you can try struts-nested tag lib
Good luck,
Albert -
Maybe I caught what've said[ Go to top ]
- Posted by: Fernando del Rio
- Posted on: July 19 2005 02:23 EDT
- in response to Albert Song
Thanks Albert, you`ve caught it!! ;-)
Yes, my hierarchy is that.
I have found another solution. A <bean:define> with the DataFormat class in it.
thanks