Hi all,

I am implementing a multi-level hierarchy (You can imagine it category , sub category and sub sub category). I want to output the structure with indentation but still cannot find a good solution. Let's ignore how the DAO retrieve the data first(another complication here). Suppose I got an category POJO like this:

   Class Category
   private int categoryId ;
   private List subCategoryList;

Each object inside subCategoryList is a Category object (Assume the whole tree is retrieved for the sake of simplicity). Therefore, it means that I need to read it recursively in the JSP if I just pass the root node to the View. I couldn't find any tag library on the net that could traverse the whole tree. Any idea? Should I write a custom tag? Or just flatten the structure before output to View?

Best regards,
Jonathan Tse
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to