File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Showing Parent Folder Links Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Showing Parent Folder Links" Watch "Showing Parent Folder Links" New topic

Showing Parent Folder Links

Liann Timtiman

Joined: Feb 14, 2005
Posts: 3
Hi, I'm trying to create/show parent folder links, similar to Yahoo! Briefcase. For instance, I want to show the links to the parent folders as I go to a main folder's subfolder and into that subfolder's subfolder, and so on. It should look like this:

All Folders > File Folders > thesis > tasks

<files under tasks here>
<files under tasks here>
<files under tasks here>

How do I do that? I would appreciate any sample code you may have. Thanks.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Static? Dynamically generated? if so, from what?

[Asking smart questions] [About Bear] [Books by Bear]
Liann Timtiman

Joined: Feb 14, 2005
Posts: 3
It's dynamically generated from an Oracle database, particularly from a table called FILEFOLDER.

What I have so far are these: I have a .java file called Files in which I declared a vector called getFolderDetails:

On my s_files.jsp page, I have:

I think I got the logic wrong 'cause when I run it my computer hangs...
Dan Novik
Ranch Hand

Joined: Jan 26, 2005
Posts: 39
There is a Navigation taglib in Coldtags suite:
Liann Timtiman

Joined: Feb 14, 2005
Posts: 3
Is the Navigation tag applicable to dynamic values? Because when I tried including this:

I get this error:

/MyLSI/s_files.jsp:153: interpolated runtime values forbidden at `s_files.jsp?folder=<%= vDetails.get(i) %>'
I agree. Here's the link:
subject: Showing Parent Folder Links
jQuery in Action, 3rd edition