| Author |
Recursivity with custom tag
|
Seba Lenoir
Greenhorn
Joined: Jan 17, 2003
Posts: 5
|
|
Hello I'm trying to deal with Data structure which contains recursivity. The aim is to display this structure in a web page using a custom tag. I suppose it's a common situation but I'm not really familiar with TagLib. Suppose your data structure is something like: Person - fisrName - lastName - list of Person This is not a problem to create a custom tag that generate the output in a recursive way containing all the presentation logic (I mean html code). Of course I don't find this approach beautiful. So my question is: is it possible to do this in a more generic way with the tag lib. With some nested tag. One that iterate et put the data into the request, the other taking this data and siplay it on the screen. I don't really get how I can do recursivity with the return EVAL_BODY_INCLUDE. Any solutions or hints are welcome. thx, Seba
|
 |
 |
|
|
subject: Recursivity with custom tag
|
|
|