Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7984655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:20:38+00:00 2026-06-04T11:20:38+00:00

I have this custom JSP tag that implements tree table(every task can have sub-tasks):

  • 0

I have this custom JSP tag that implements tree table(every task can have sub-tasks):
Tree:

<%@ tag language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="h" tagdir="/WEB-INF/tags"%>
<%@ attribute name="tasks" type="java.util.List" required="true"%>


<c:forEach items="${tasks}" var="t">
            <tr>
                <td><c:out value="${t.id}"></c:out></td>
                <td><c:out value="${t.name}"></c:out></td>
                <td><c:out value="${t.description}"></c:out></td>
                <td><c:out value="${t.deadline}"></c:out></td>
            </tr>
    <c:if test="${fn:length(t.subtasks) > 0}">
        <h:tree tasks="${t.subtasks}"/>
    </c:if>
</c:forEach>

Tree Wrap:

<%@ tag language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="h" tagdir="/WEB-INF/tags"%>
<%@ attribute name="tasks" type="java.util.List" required="true"%>
<table>
    <h:tree tasks="${tasks}"></h:tree>
</table>

Now every sub task is displayed below it’s parent. I nedd some left pading on every child row(like a tree):

-parent row
  -child row
  -child row
    -child chuld row
  -child row

How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:20:40+00:00Added an answer on June 4, 2026 at 11:20 am

    If you do a View Source, you should be able to see the class names or ids for the various HTML elements on the form. Use these in css to define the characteristics you’d like to achieve.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom jsp tag like this: <a:customtag> The body of the custom
I have this custom textbox that I am working on and I can use
I have written a JSP custom tag, implemented in a class that extends TagSupport,
So i have this listview with my custom XML file that i made for
So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE
I have a map custom view that inherit from MKOverlayPathView. I need this custom
I have custom JSP tags that generate some HTML content, along with some javascript
I have a custom tag that I'm trying to pass a String to. It
I'm trying to create a custom JSP tag that would take an array object
When trying to use a custom JSP tag library, I have a variable defined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.