title: Tree table jsp custom tag
body: <p>I have this custom JSP tag that implements tree table(every task can have sub-tasks):
  Tree:</p>
  
  <pre><code>&lt;%@ tag language="java" pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%&gt;
  &lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%&gt;
  &lt;%@ taglib prefix="h" tagdir="/WEB-INF/tags"%&gt;
  &lt;%@ attribute name="tasks" type="java.util.List" required="true"%&gt;
  
  
  &lt;c:forEach items="${tasks}" var="t"&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;c:out value="${t.id}"&gt;&lt;/c:out&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;c:out value="${t.name}"&gt;&lt;/c:out&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;c:out value="${t.description}"&gt;&lt;/c:out&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;c:out value="${t.deadline}"&gt;&lt;/c:out&gt;&lt;/td&gt;
              &lt;/tr&gt;
      &lt;c:if test="${fn:length(t.subtasks) &gt; 0}"&gt;
          &lt;h:tree tasks="${t.subtasks}"/&gt;
      &lt;/c:if&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Tree Wrap:</p>
  
  <pre><code>&lt;%@ tag language="java" pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib prefix="h" tagdir="/WEB-INF/tags"%&gt;
  &lt;%@ attribute name="tasks" type="java.util.List" required="true"%&gt;
  &lt;table&gt;
      &lt;h:tree tasks="${tasks}"&gt;&lt;/h:tree&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Now every sub task is displayed below it's parent. I nedd some left pading on every child row(like a tree):</p>
  
  <pre><code>-parent row
    -child row
    -child row
      -child chuld row
    -child row
  </code></pre>
  
  <p>How can I achieve this?</p>