Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing Parent Folder Links

 
Liann Timtiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static? Dynamically generated? if so, from what?
 
Liann Timtiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a Navigation taglib in Coldtags suite:
http://www.servletsuite.com/jsp.htm
 
Liann Timtiman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) %>'
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic