I guess you mean javascript? Look if the folders you want to browse through are on the client side, you'll have a problem, since the browser is not allowed to do things like folder browsing etc (think of the security issues that would rise with such a feature). So then indeed you need to use Java to make a small applet that would browse folders on the harddrive. I'm not a Java expert, so I don't really know. If we talk about folders on the server, then you indeed have to loop on the serverside through all the folder and print them to the client in HTML.