Results 1 to 2 of 2
- 07-28-2009, 10:22 AM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Creating Virutal File System from given information
Hello everyone,
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[10];
id[0] = "ser4\\PRoJ\\MODULES\\1.jsp";
id[1] = "ser4\\PRoJ\\COMMON\\2.jsp";
id[2] = "ser2\\CHeC\\BEANS\\3.jsp";
id[3] = "ser3\\PRoJ\\MODULES\\date\\4.jsp";
...etc.
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, 02: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.
Similar Threads
-
java toll booth information system (toll booth calculator)
By b177y in forum New To JavaReplies: 7Last Post: 03-14-2009, 07:11 AM -
add information to HTML file
By newbieal in forum New To JavaReplies: 2Last Post: 10-03-2008, 08:59 PM -
How would you get information from a file and then store it in an array?
By szimme101 in forum Advanced JavaReplies: 3Last Post: 04-07-2008, 06:02 PM -
system information
By nitinborge5 in forum New To JavaReplies: 1Last Post: 08-07-2007, 09:25 AM -
how to get information of a file
By leonard in forum New To JavaReplies: 2Last Post: 08-01-2007, 05:03 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks