Results 1 to 2 of 2
  1. #1
    hugsheals is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default 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";

    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.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Rep Power


    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

  1. Replies: 7
    Last Post: 03-14-2009, 07:11 AM
  2. add information to HTML file
    By newbieal in forum New To Java
    Replies: 2
    Last Post: 10-03-2008, 08:59 PM
  3. Replies: 3
    Last Post: 04-07-2008, 06:02 PM
  4. system information
    By nitinborge5 in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 09:25 AM
  5. how to get information of a file
    By leonard in forum New To Java
    Replies: 2
    Last Post: 08-01-2007, 05:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts