Results 1 to 2 of 2
- 07-28-2009, 11:22 AM #1Member
- Join Date
- Jul 2009
- Rep Power
Creating Virutal File System from given information
I have a particular problem...I need suggestion or some code to how to handle my problem.
I am given a piece of information in form of array of string
the string contains somelike this
String id = new String;
id = "ser4\\PRoJ\\MODULES\\1.jsp";
id = "ser4\\PRoJ\\COMMON\\2.jsp";
id = "ser2\\CHeC\\BEANS\\3.jsp";
id = "ser3\\PRoJ\\MODULES\\date\\4.jsp";
I need to create a virtual directory system.....and show it in from a webpage in jsp...... were for say on first open the user sees -
two links .... "ser4" and "ser2"
wen user clicks on "ser4" link
it shows "PRoJ" link on clicking on these it shows "MODULES" & "COMMON" links and on clicking on "MODULES" it shows "1.jsp" "2.jsp" "DATE" and so on.
and will show a path on the top from where to where he has traversed....(like naviagation link)
anyone have any idea how can i put up these. (Data i provided are subject to change but the pattern wil remain the same)
Please do reply. Suggestion are welcomed
Thanks and regards.
- 09-27-2009, 03:32 AM #2
so you would mean virtual file system like a kind of virtual path, that is the jsp pages content are stored not on the real file system. but perhaps in a database. (aside from the larger problem of needing to go and customize the JSP parser to be able to do this, it is possible with the Jasper compiler from Tomcat.) , the display of html from a database backed file store is possible.
where you invent a node table that represents your directory, parent directory, so that selecting the entries where parentdirectory = ? shows the file at the current virtual directory.
- By b177y in forum New To JavaReplies: 7Last Post: 03-14-2009, 08:11 AM
- By newbieal in forum New To JavaReplies: 2Last Post: 10-03-2008, 09:59 PM
- By szimme101 in forum Advanced JavaReplies: 3Last Post: 04-07-2008, 07:02 PM
- By nitinborge5 in forum New To JavaReplies: 1Last Post: 08-07-2007, 10:25 AM
- By leonard in forum New To JavaReplies: 2Last Post: 08-01-2007, 06:03 PM