Tree like structure ??????????? pls help

Hello
I want to get the tree like structure
My requirement is that when I write any jsp and put it in webapps's any
folder I should get tree like structure of the folders in which I am putting my jsp.
Foe example I have structure like
webapps
--rakesh_folder1
--rakesh_folder2
--rakesh_folder3
---rakesh_subfolder1
---rakesh_subfolder2
----(Here goes my jsp which would make to get sructure)
----my_other_file_1
----my_other_file_2
When I type http://localhost:8080/rakesh_folder3/rakesh_subfolder2/jspname
I want output as
--rakesh_folder3
---rakesh_subfolder2
----my_other_file_1 (size of file) (time stamp)
----my_other_file_2 (size of file) (time stamp)
How should I proceed ????????????????????
Tx in advance
Rakesh

rakesh,
see if you have tree structure like this
C:\
Vivek
Rakesh
then C:\ is the root from where you are starting.
so just
<html>
<body>
C:\
&ampnbsp;&ampnbsp;&ampnbsp;Vivek
&ampnbsp;&ampnbsp;&ampnbsp;Rakesh
</body>
</html>

Similar Messages

  • JComboBox tree like structure needed, help help help plz.

    I would like to create a JComboBox that display the filesystem
    in a tree format, much like the way the FileChooser class
    displays directories in its dropdown combobox. Is there any
    sample code around for doing this, I not getting very far with
    this and any help would be greatly appreciated.
    Thanks!

    Maybe your extension of the class TreeCellRenderer should return a combo box in the method getTreeCellRendererComponent(.....)

  • Tree Like structures

    Dear All,
    I am working on some tree like structures querys.
    I am strucked up with one tricky concept.
    My Data is like as given below
    EMPNO MGR
    1
    2 1
    3 1
    4 2
    5 4
    Now my requirement states that I should display the date as given below
    1
    1 2
    1 2 4
    1 2 4 5
    Can anyone help me in designing a query.
    Appreciate your help on this.
    Thanks,
    Madhu K.

    If more levels are there then it should populate under different columns like col5 ..... That's fine, that's how it will work.
    There are only 4 levels above because that's just how the sample data is.
    1 2 3 4You'd think people could give suggestions that get you over the hard bit and then you do some work for anything that's not exactly right.
    SQL> ed
    Wrote file afiedt.buf
      1  WITH DATA AS(
      2   SELECT 1 a,0 b FROM dual UNION
      3   SELECT 2,1 FROM dual UNION
      4   SELECT 3,1 FROM dual UNION
      5   SELECT 4,2 FROM dual UNION
      6   SELECT 5,4 FROM dual UNION
      7   SELECT 6,5 FROM dual
      8  )
      9  SELECT SUBSTR(SYS_CONNECT_BY_PATH (a,' '),2) scbp
    10  FROM DATA
    11  CONNECT BY PRIOR a=b
    12  START WITH a=1
    13* ORDER BY 1
    SQL> /
    SCBP
    1
    1 2
    1 2 4
    1 2 4 5
    1 2 4 5 6
    1 3
    6 rows selected.
    SQL>

  • Access rights in case of a tree-like structure, with inheritance

    Hello,
    the project I've just started to work on should include an easy way (from the user's point of view) to grant/revoke access rights on a tree-like structure with inheritance.
    Basically we are working for several international companies who want to use our application to watch/manage some of their web projects - each project belongs to one company and consisting of several 'campaigns' in several countries (there can be several campaigns per country, but each campaign belongs to exactly one country).
    From our point of view this is a tree-like structure, with a 'root' node at the top level, 'companies' at the first level, 'countries' at the second level, 'campaigns' at the third level, and modules of our application (for example a module to display overall stats of the campaing, and so on) at the fourth level. There could be (and probably will be) some more levels, but that's not important at this point - it will always be a tree-like structure.
    The customer's reqirements are natural - the administrators should be able to grant/revoke access to 'subtrees' of this structure. For example the top managers should be able to see all the data related to their company, the local managers should be able to see all the data related to their company in the country they work in, etc. On the other hand the relular employees should not see some of the modules (with details about clients of the company).
    I wonder whether this can be solved using JAAS in an elegant and flexible manner - from the documents / whitepapers / tutorials I've seen till now it seems to me it seems to me not too suitable.
    All the data will be stored in relational database (Oracle, and in some cases PostgreSQL), and it would be nice to have the access rights stored in the same way (but it's not required). We have some ideas how to solve that using a single table containing paths in the tree, but at this point it's only an idea (not a single line of code written).
    We are sure somebody has already to solve such a problem - maybe using JAAS, maybe some other technology - and we don't want to reinvent a wheel. Do you have an idea how to solve this (using JAAS or something else)?

    Well, I forgot to explain what the 'inheritance' means ...
    We do not want to set the access right on each node of the tree - we prefer (as well as the users) to set/store only as much information as needed. We'd like the nodes to inherit the access rights from their parent nodes. For example we'd like granting access to particular project to mean granting access to all campaigns in all countries (related to the project), without the need to set and store these rights for each of the campaigns/countries.

  • What is the best way to organize a tree-like structure of constants?

    Hello everone!
    Need help with organizing my constants structrure.
    I have several tables, and each of them need a list of column names to define the fields returned after query, and also a corresponding list of hashmap keys because that columnnames are ugly. Hashmap is where I store the result of searching through the table. This question is not about JDBC because I search through tables via COM interface, no JDBC ResultSets and other stuff here.
    Finally, for each table I have two constant lists and I have a list of tables. What is the best way to store this?
    My first idea was to create a enum and store column data in it as String array attributes: String[] columnNames; etc.
    But in this case I cannot use each column and key separately.
    Another option is to create two separate enums for each table: columnNames enum and keys enum. That doesn't look great also.
    The third option is to create inner class for each table and store two enums in each of that classes.
    Also I can store all data in hashmaps, Strings etc.
    (1) Finally, from your experience, what is the best way to organize all that stuff?
    (2) I have heard that smart Java programmer should avoid using the enums by any means. Do you agree?
    (3) Generally what will you prefer when creating a constant which has two values: two final Integers or enum?
    Edited by: Dmitry_MSK on Jul 8, 2010 5:22 AM

    I'm not sure why you don't just invent a generic data structure (e.g., table name, list of column names and aliases of column names) such as:
    class QueryMetaData {
      private final String tableName;
      private final String[] columnNames;
      private final String[] columnAliases;
    }Read into the above structure from a properties file, database table, etc. You can store meta-data itself in places other than enum constants, particularly if would like to change the meta-data without requiring a new build of your application.
    That having been said, WRT to your specific questions:
    (1) Finally, from your experience, what is the best way to organize all that stuff?See above
    (2) I have heard that smart Java programmer should avoid using the enums by any means. Do you agree?Enums are better than simple constants using int or String or something similar. If there are known, discrete values unlikely to change frequently, I see no issues with an enum. They improve the readability of code, and there are enough syntactic sugar features in the language (switch statements come to mind) to make them appealing.
    (3) Generally what will you prefer when creating a constant which has two values: two final Integers or enum?
    See above. Enums were introduced (in large part) to do away with storing constants as integers.
    - Saish

  • Trying to import a weird table format into a tree like structure.

    Hi All,
    I am using NWDS 7.0.18
    I am trying to use the Tree in a table element to organize some data I'm receiving from an rfc. The table im receiving looks a little like this:
    leaf1  |  leaf2 |  root  |  child1 |  child2  |
    00     |  ab    |   r      |  c1a    |  c1a_1  |
    00     |  cd    |   r      |  c1a    |  c1a_2  |
    01     |  ab    |   r      | c1b     |  c1b_1  |
    01     |  cd    |   r      | c1b     |  c1b_2  |
    This table can grow and shrink in terms of children but the lowest child with data will always have leaves.
    Now heres what I'm finding difficult. When I loop thru this table in Web Dynpro, when i get the first element with getElementAt(i), it returns the entire first row.
    The wdInit method calls a custom method like this
    addLevelEntries(wdContext.nodeLEVEL(), "ROOT");
    And then later in onActionLoadChildren
    public void onActionLoadChildLevelEntries(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sjm.wdp.wdp.IPrivateTreeAppCompView.ILEVELElement element )
        //@@begin onActionLoadChildLevelEntries(ServerEvent)
        addLevelEntries(element.nodeCHILD_LEVEL(), element.getID());
        element.setChildrenLoaded(true);
        //@@end
    but the problem is the child element Id's are in the same row as root element id!!!!
    How can I, if possible, loop thru this table and add the relevant nodes in the correct places and then eventually add its leaves?
    Any help greatly appreciated.
    Thanks
    P

    //why not making use of the Search feature of this forum //
    DVDs are in a socalled delivery format (mpeg2), which isn't meant and made for any processing as editing...
    for using the iLife apps, you have to convert'em first, in recommended order, choose one of the following tools/workarounds:
    DVDxDV (free trial, 25$, Pro: 90$)
    Apple mpeg2 plugin (19$) + Streamclip (free)
    VisualHub (23.32$)
    Drop2DV (free, requires installation of ffmpeg parts, google for it...)
    Cinematize >60$
    Mpeg2Works >25$ + Apple plug-in
    Toast 6/7/8 allows converting to dv/insert dvd, hit apple-k
    connect a miniDV Camcorder with analogue input to a DVD-player and transfer disk to tape/use as converter
    http://danslagle.com/mac/iMovie/tips_tricks/6010.shtml
    http://danslagle.com/mac/iMovie/tips_tricks/6018.shtml
    http://karsten.schluter.googlepages.com/convertdvdstodvs
    none of these methods or tools override copy protection/DRM mechanisms.. advice on 'ripping' is a violation of the ToU of this board ..
    +be nice to copy rights ...+

  • Creating tree like structure

    I want to create a tree on my own i.e., without using jtree class in japplet.Can anyone give any hint for creating...How to create the realationship between the drawings i.e., parent child relationship..Should i have to use any data structure concepts?

    coz, the rest of the work can't be did if its going to be in jtree.[sic]Why not?
    What in the heck are you doing? What have you done so far?
    What help, exactly, are you looking for?
    I difficult in setting the parent-child relationship[sic]Can't really help you if we have no idea what you're actually working with, here.

  • Problem with derivation of tree-like structure by means of query

    Hi.
    My name is Viktor. I'm from Russia so sorry for my English:)
    You know I have the following problem:
    Input data: For example, I have the following table with hierarchy (where ParentID is ID of the parent element in the same table, also we dont know the amount of levels in hierarchy previously).
    Input table:
    ID --------------Name----------- ParentID
    1 ----------------Russia------------- Null
    2 ----------Centr. Fed.Circle------ 1
    3 -----------South.Fed.Circle------ 1
    4 -----------Moscow region ---------2
    5 --------------Podolsk ----------------4
    Tell please how to receive the broach of that table with hierarchy by means of hierarchical query (or group of queries) to the following table:
    Result table:
    Attribute1------ Attribute2------------ Attribute3------------ Attribute4
    Russia--------------Russia ----------------Russia------------------Russia
    Russia -------Centr. Fed.Circle -----Moscow region --------Podolsk
    Russia -------South.Fed.Circle ------South.Fed.Circle -----South.Fed.Circle
    That is I need that the input table with the hierarchy would expand in the corresponding amount of columns in the result table (it depends on the amount of level in the input table) and would in due order, that is where we havenot value for level (for example we havenot values for the element Russia (first row in column Attribute1 in the result table in the following columns: Attribute2, Attribute3, Attribute4) we must fill these columns by the value from previous level.
    I think you understood my task. If necessary i can give eхplanation more. Thanks for help.
    Best regards, Viktor
    Edited by: user8017496 on 10.02.2009 10:39
    Edited by: user8017496 on 10.02.2009 10:52

    Hi,
    Below is a dynamic solution for SQL*Plus.
    If you want to do this in PL/SQL, this should show you how.
    --     *****  Start of dynamic_pivot.sql  *****
    -- Suppress SQL*Plus features that interfere with raw output
    SET     FEEDBACK     OFF
    SET     PAGESIZE     0
    -- Preliminary query to write 2nd, 3rd, ... SELECT columns
    SPOOL     p:\sql\cookbook\dynamic_pivot_subscript.sql
    WITH     got_path     AS
         SELECT     LEVEL                     AS lvl
         FROM     input_table
         START WITH     parentid     IS NULL
         CONNECT BY     parentid     = PRIOR id
    SELECT     ',     MAX (NVL (REGEXP_SUBSTR (path, ''[^/]+'', 1, '
         ||      TO_CHAR (LEVEL + 1)
         ||     '), name))     AS attribute'
         ||      TO_CHAR (LEVEL + 1)
    FROM     dual
    CONNECT BY     LEVEL     <     (
                        SELECT     MAX (lvl)
                        FROM     got_path
    SPOOL     OFF
    -- Restore SQL*Plus features suppressed earlier
    SET     FEEDBACK     ON
    SET     PAGESIZE     50
    -- Main Query
    WITH     got_path     AS
         SELECT     name
         ,     LEVEL                    AS lvl
         ,     SYS_CONNECT_BY_PATH (name, '/')     AS path
         FROM     input_table
         START WITH     parentid     IS NULL
         CONNECT BY     parentid     = PRIOR id
    ,     cntr     AS
         SELECT     LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL     <=     (
                             SELECT     MAX (lvl)
                             FROM     got_path
    SELECT     MAX (NVL (REGEXP_SUBSTR (path, '[^/]+', 1, 1), name))     AS attribute1
    @p:\sql\cookbook\dynamic_pivot_subscript.sql
    FROM     got_path
    JOIN     cntr          ON n     <= lvl
    GROUP BY     name;When I used the dynamic_pivot_subscript.sql on the folder p:\sql\cookbook, you can use any file on any folder available from your SQL*Plus client machine.
    I'm not saying that there's anything wrong with 3 rows of output. I'm only saying that I don't understand why you want 3 rows, and why you want those 3 rows. If I understood the problem, then I could probably show you a solution.
    I don't mind explaining things that you don't understand, but I don't want to waste time explaining things that you already do understand.
    Fell free to ask specific questions.

  • Hierarchical Tree Like Structure with DataTableEx jsp Component

    Hi,
    I have created a dataTable component with rowcategory on 2 columns to get the nesting effect on the data rows with check boxes . Initially everything is collapsed. Once i select few checkboxes and then click on "Clear Selection " btn to clear off all the selection, the entire the nesting again collapses.
    Can any one suggest how can i prevent this from happening. Also i need to implement an Expand All and Collapse All feature separetely. How can i do this.. I am not using a tree component because i have few text fields and checkboxes for each row. Would be highly grateful if someone could suggest a way or piece of code

    Hi,
    I have created a dataTable component with rowcategory on 2 columns to get the nesting effect on the data rows with check boxes . Initially everything is collapsed. Once i select few checkboxes and then click on "Clear Selection " btn to clear off all the selection, the entire the nesting again collapses.
    Can any one suggest how can i prevent this from happening. Also i need to implement an Expand All and Collapse All feature separetely. How can i do this.. I am not using a tree component because i have few text fields and checkboxes for each row. Would be highly grateful if someone could suggest a way or piece of code

  • Since uptade IOS 5 videos can't play on a playlist like before need play videos like playlist pls help !

    i have use my iphone always for music on car etc etc so now i get the new Update and i cant make playlist with music videos so far, BTW some else have same problem or how do i fix this somebody know how to make a playlist with music videos

    well thax i check out the apps and are good for me but the last version allowed u to close de ipod app then u push button x2 then u clear all open apps or just ipod app then u push play on the mini remote on same place then u lock down the phone push again the button and push play and it run the ipod with lock screen thats what i mean
    hope u understand mee ! =)

  • Trre like structure in JComboBox. (VERY VERY URGENT , PLZ. HELP)

    hi,
    Question is I want to get a tree like structure in my comboBox. I have built a custom component just like FileDialog. In my comboBox I have a directory showing that inturn contains directories inside. When I pop up my component my parent directory is shown in the comboBox and the child directories are shown in the panel underneath it. Just like FileDialog. When I select any child directory it's name is added under the parent directory and indented to the right a little in my comboBox and in my panel the child's sub-directories are shown. If I again click a parent directory in my comboBox the chiild directory is removed and in the panel again my parent directories child directories are shown it's just like FileDialog. How can i achieve this functionality. Any help or piece of code is appreciated
    Thank you

    I am kind of guessing here, but this sounds like a
    similar problem to that you'd have implementing a
    treetable.
    Check out the sun treetable tutorial, especially the
    cell renderer parts wich is really how the tree is
    displayed.
    I guess you need to replicate that for your list (part
    of the combo box). Let me know how you get on, I'll
    try and work with you on this as I'd like to learn how
    to do that myself.For a real tree table, check out the Swing Connection articles (it's about more that this renderering problem).
    http://java.sun.com/products/jfc/tsc/articles/index.html
    Anyway, for this problem, there are two solutions. Somehow draw a JTree when the drop down is clicked instead of the individual rows (I have no clue how to do this) or develop a new renderer.
    The renderer would implement ListCellRenderer. The default renderer is based on a JLabel, but I know of no method to indent the JLabel by itself, so option 2 is a new renderer based on a JPanel with a flow layout with left alignment. The indentation can be achieved by adjusting the horizontal gap.of the layout.
    You might also need to call invalidate(), followed by validate(), on the panel after adjusting the gap. This is because modifying the constraints on the layout does not cause it automatically to re-layout the components on the container.

  • How to display grouped tracks tree-like?

    I imported lots of classical CDs and I grouped some works using the 'Grouping' field of the song information dialog. The grouping I added appears in the column 'Grouping' , but however, I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Unfortunately, the help files and FAQs don't tell a lot about grouping.
    How can I enable the tree-like display of groupings in my library?
    FYI: I am using iTunes 6.0.1 on Mac OS X 10.0.3
    Thanks for any help
    Michael

    I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Ohh! That would be Folder Structure then. A useful feature in other circumstances of running tracks together while in Party Shuffle or Shuffling a list. iTMS can obviously do it, but apparently not iTunes.
    Suggest you log a request at http://www.apple.com/feedback/itunes.html
    Grouping seems another way of making a regular or smart playlist, but would not affect how those songs get displayed in viewing the library. The word "grouping" gives the impression of doing somethiing more I think.

  • Generation of tree like GUI

    Hey guys,
    I need to create a GUI which looks something like the left side content section of this webpage. If I click on the + sign I can see more topics that are there in that items.
    http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac00490_.htm
    Can anybody tell me which java API library should I use in order to create that tree like structure.
    Thanks.

    You can do that in Swing with JTree

  • Best way to implement tree like subcategory chooser in GUI on iphone

    I need to let user choose subcategory, from a tree like structure, 3-4 level deep.
    and the list is veeeery long. I was wondering what would be the best way to show it to user, and let him choose one.
    ideas ?

    The right solution here is probably a set of UITableViewController subclasses inside a UINavigationController that your application presents modally. If the lists are long even within a level, sort and group them alphabetically and present an index list along the side, the way Contacts does. You should be able to do all this with just a few UITableViewDelegate/DataSource methods.

  • Pls help in this query

    Hi,
    I've needed to print output like below. pls help me out .
    Thanks & Regards,
    Ramana.

    SQL> select '*****'||chr(10)||'****'||chr(10)||'***'||chr(10)||'**'||chr(10)||'*' from dual;
    '*****'||CHR(10)||'
    SQL>

Maybe you are looking for

  • How do I change the background color to black? I'd like Photoshop's generated web gallery to display photos against a black background.

    I can't find a place to change the background to black from white. I'd like Photoshop's automated web gallery feature to show photos against a black background once I open the htm file inside Firefox. I use a Mac with OS 10.6.7 (current) on my 27-in.

  • My new imac will not boot up.

    I purchased a new imac 2.15" I7 processor and it has been working fine until today. It will not boot up. The background is white and the boot symbol just spins and spins. Powered the system off and back on and didn't work. Also unplugged waited for a

  • How can I convert pdf to word in Argentina

    I tried to buy the subscription package but it is not available in Argentina. Does that mean I cannot convert my pdf files? That doesn't sound right. Please help, thanks

  • Hash Join,temprary table,

    Dear sir, Can you give some information with example of below mentioned query 1) diff between IN and EXIST operator 2) What is HASH JOIN 3) What is temprary table 4) On what condition an INDEX performance is effective or not effective regards Laxman

  • BED,CESS not get ubdated when creating excise invoice

    Hi experts, When i create excise invoice with reference to commertial invoice,BED,CESS notget ubdated in excise utilization tab "DEEMED is in blue color.How can i this into "NOBAND" I have done the CIN Customizing Please correct me ASAP..............