pls help me the coding..

Recommended Answers

All 3 Replies

<%@ page session="false" %>

<%@ taglib uri="" prefix="c" %>

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

<html xmlns="" 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>

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

<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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.