Hi
You can achieve this functionality using XML.
Load your data into an XML, whose structure you will have to define according to your database table design.
Next, you can use XSL to render the XML onto a jsp page.
The xml file can be set as the src of a frame and u wl be able to see the functioanlity u desire.
The toggle effect can be got by the following javascript code:
function showBranch(branch){
//alert("branch opened with id value : " + document.getElementById(branch).cname);
var objBranch = document.getElementById(branch).style;
if(objBranch.display=="block")
objBranch.display="none";
else
objBranch.display="block";
swapFolder('I' + branch);
}
function swapFolder(img){
objImg = document.getElementById(img);
if(objImg.src.indexOf('images/closed.gif')>-1)
objImg.src = openImg.src;
else
objImg.src = closedImg.src;
}