Under the MVC model 2 architecture, there is need that the view provide recursion method so as to render complex object, such as an arbitrary level tree. But now, jsp does not support recursion method, though it supports loop/switch control to render simple object, such as collection.
Then how to achieve recursion in jsp?
Jsp custom tag. I am not familiar with this.
Scriptlet. As commented by some people, yuck.
Loop substitution for recursion. An algorithm which can achieve the same effect of recursion, but use looping instead. This has bad readability.
XSLT. Translate xml representation of the complex object to html. I prefer the this, because I am familiar with xslt and it is internet standard and it forms good 'architecture', loose-coupled, reusable, neat.