Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
ad the contents of a hierarchy too. If you end up using it would be very nice to share thoughts about use/integration-design. Cheers, Samuel. -Original Message- From: Jonathan Tse [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Enero de 2007 02:46 a.m. To: users@appfuse.dev.java.net S

RE: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Samuel Alfonso Velázquez Díaz
very nice to share thoughts about use/integration-design. Cheers, Samuel. -Original Message- From: Jonathan Tse [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Enero de 2007 02:46 a.m. To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Recursive data structure in JSP Hi Matt

Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread jarmstrong
If you used the database to help you out you could output the results with a simple loop and then you would know the depth to place each item at. However, this highly depends on what the information your storing is used for, this does not work well for every case. For instance you would have the

Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
Hi Matt, I cannot follow. What should those JSTL look like as there is n-level of category? If only the root node is passed in, it is just a plain object. JSTL should not be able to iterate it through. Best regards, Jonathan Matt Raible wrote: You could probably use JSTL's to traverse t

Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Matt Raible
You could probably use JSTL's to traverse the tree and print out the contents. Regular ol' HTML tags should help you indent it where you need to. Matt On 1/23/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, I am implementing a multi-level hierarchy (You can imagine it category , sub c

[appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
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