my dog learned polymorphism*
The moose likes JSP and the fly likes Folder structure view in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Folder structure view in JSP" Watch "Folder structure view in JSP" New topic
Author

Folder structure view in JSP

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hi All,

I am interested in knowing how to create folder strutcture view in JSP.

For ex: Open any folder in window explorer view type. what you see on your left bar is the folder structure I want to create in JSP.

Please advise..
Thanks in Advance.
-Anand
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

What have you coded so far?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
I haven't started any coding on this page yet as I m not sure How to go about creating folder structure view.

Thanks
-Anand
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

The first step would be to write the class or classes that detect the folder hierarchy to be displayed and to store that information in a data structure that can be passed to a JSP for display. Do you have that part written yet?
[ December 11, 2006: Message edited by: Bear Bibeault ]
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Yes. I haven't written that acutal code but I have the psuedo code ready. i.e The data to be displayed in "Folder strutcture view" is ready and will be stored in Tree data structure.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

OK, so you need a servlet to call that code, and then a JSP that the servlet will forward to in order to display it.

What version of JSP are you using?
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Yes. You are right. I m not sure about JSP version. I m using JDK 1.3 so I believe JSP version must be 2.0 or above.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

I m using JDK 1.3 so I believe JSP version must be 2.0 or above.


That does not equate. JDK 1.3 is used by many containers that do not support JSP 2.0.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Please don't post the same question to more than one forum; see our explanation here. I've deleted or closed several other variations of this same thread for you.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Folder structure view in JSP
 
Similar Threads
Tree data structure
RAD 7 creating project with existing directories
Need help in Tree structure...
To code or not to code, and other questions of our existence.
Tree in Applet