This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Recursion in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Recursion in JSP" Watch "Recursion in JSP" New topic
Author

Recursion in JSP

Rob Lynn
Greenhorn

Joined: Jun 27, 2005
Posts: 28
I am looking for a solution for outputting my outline in a JSP. I don't know how many levels each item will have. Each outline item is in an OutlineItem object that contains other OutlineItems. Getting them in there was easy, but I can't figure out how to print them on a JSP page. Should I consider a custom tag library? I am using j2sdk1.4.2_08, Tomcat 4.13, and Spring.

Thanks!
Yong Bakos
Greenhorn

Joined: Jul 18, 2005
Posts: 29
If it was my app, Rob, I would use a custom tag and put your recursive display code in there. While first creating/troubleshooting the output logic though, just use a scriplet in your JSP for quick-and-dirty debugging.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Recursion in JSP
 
Similar Threads
hi, i have an array question, this is probably really obvious (to everyone else other than me)
HTTP method
Dynamic Form Options
struts: JSP, iterator and display a list as a grid
Servlets 4a question