java - Refactoring JSP scriptlet loop to be more readable -


I have a few JSP code, which writes a tree representing reputable data. This data is displayed using nested layers.

The JSP code has many code snippets similar to the following code (which is the numeric value of variable differences in many closing tag tags):

   

Using scriptlets is not rude, and reading the code is not very easy at first sight. How can the code be re-applied to be more readable?

tag of JSTL (Java Server Pages Standard Tag Library).


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -