aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Showing Parent Folder Links" Watch "Showing Parent Folder Links" New topic
Author

Showing Parent Folder Links

Liann Timtiman
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 61755
    
  67

Static? Dynamically generated? if so, from what?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Liann Timtiman
Greenhorn

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:
http://www.servletsuite.com/jsp.htm
Liann Timtiman
Greenhorn

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: http://aspose.com/file-tools
 
subject: Showing Parent Folder Links