• Post Reply Bookmark Topic Watch Topic
  • New Topic

Recursion in JSP  RSS feed

 
Rob Lynn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!