IntelliJ Java IDE
The moose likes JSP and the fly likes Recursivity with custom tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Recursivity with custom tag" Watch "Recursivity with custom tag" New topic
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
 
Threads others viewed
** setting null to false
[html:rewrite]-type path translation in scriptlet?
Show Directory Structure on a JSP page
tld question
Struts1.2 Equals Tag Problem
developer file tools