tree - Displaying a Graph structure in JSP -


i have table in db holds child&parent relationships. trying display info in jsp graph (a single child can have multiple parents).

may need use recursive calls in jsp. has come across kind of work?

any examples/pointers ?

thanks

could hierarchy fit combination of list / map data structures? have hierarchal data i'm working on showing in jsp, 3 or levels deep. map has key-value set of lists, list has other lists, etc. here of jsp code. uses expression langauge , jstl tags keep things simpler:

<section id="content" class="body">     <ol id="posts-list" class="hfeed">       <c:foreach items="${learningentries}" var="learningentry">            <li>              <table class="wisientry">                 <tr>                     <td class="picturecell">                         <img class="wisientry-pic" src="${learningentry.imagepath}" />                         <div class="tags">                             <c:foreach items="${learningentry.tags}" var="tag">                                 <a class="tag" href="/tags/${tag.name}">${tag.name}</a>                             </c:foreach>                         </div>                     </td>                     <td class="previousnextcell"                         <div class="wisientry-nextsamplebutton">next</div>                         <div class="wisientry-previoussamplebutton">previous</div>                         <br />                         <div class="wisientry-addtagbutton">tag</div>                         <div class="wisientry-addcommentbutton">comment</div>                         <br />                         <div class="wisientry-uploadbutton">upload</div>                     </td>                     <td>                         <!-- error happens here. samples should not null -->                        <c:foreach items="${learningentry.samples}" var="sample" varstatus = "status">                              <table class="sampleentry" ${status.first ? '' : 'style = "display:none"'}>                                 <tr>                                     <td class="samplecell">                                         <p class="description">                                             ${sample.description}                                         </p>                                         ... 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -