4 Years
Discussion Span
Last Post by shwetha.marigowda
<%@ page session="false" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<jsp:useBean id="documentationList" class="epbeans.common.DocumentationList" />

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title> </title>

    <style type="text/css">

        #frameContentDoc {
            margin: 0;


<body style="font-family: Lucida Grande, Trebuchet MS; color: navy; margin: 0; padding: 10px;">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" style="font-size: 125%; font-weight: bold; padding: 0; margin: 0;">
            <td align="left">Documentation</td>
    <ul style="padding: 0 20px; list-style-type: none;">
        <li style="font-size: 115%">Contents
            <ul style="font-size: 80%; list-style-type: disc;">

                                    <c:forEach var="opt" items="${documentationList.docsList}">
                                        <li style="margin:0; padding: 8px 0 0 10px;"><a href="#"><u><c:out value="${opt}" /></u></a></li>

Edited by shwetha.marigowda: some commented lines were present


You can use html , jquery to display your folder structure in a treeview format

For dynamic conntent you can use any scripting language like php or jsp

The html goes as follows

The Jquery plugin is at http://docs.jquery.com/Plugins/Treeview/treeview

<ul id="folder" class="filetree">
        <li><span class="folder">Folder 1</span>
                <li><span class="file">Item 1.1</span></li>
        <li><span class="folder">Folder 2</span>
                <li><span class="folder">Subfolder 2.1</span>
                    <ul id="folder21">
                        <li><span class="file">File 2.1.1</span></li>
                        <li><span class="file">File 2.1.2</span></li>
                <li><span class="file">File 2.2</span></li>
        <li class="closed"><span class="folder">Folder 3 (closed at start)</span>
                <li><span class="file">File 3.1</span></li>
        <li><span class="file">File 4</span></li>

The Jquery


    // first example


thanks for the reply, the floder and the subfloder name also should be dynamic, i cant hard code it..
is der anyway that i can pass the jquery variable to jsp so that i can get the path name easily when i click on the subfolder , because i have files in the subfolder, those names also should populate dynamically..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.