Results 1 to 3 of 3

Thread: How to Generate menu from a databases

  1. #1
    Join Date
    Apr 2009

    How to Generate menu from a databases


    It is possible to generate a menu from an XML file? (I will mostly prefer from XML otherwise any other language will also do). I think that if it can be done directly from a database, we avoid creating the XML file in question from the base.
    Of course I work with Netbeans 6.5 as IDE, GlassFish v2 application server as, among other things and it does not bother me to import other libraries if necessary.

    In short, my question is how to generate the menu dynamically from the database. I always speak as part of a web application in Java.
    Thank you very much!

  2. #2
    Join Date
    Mar 2008

    Re: How to Generate menu from a databases

    The following structure is kept in a single database table with the following fields:
    field name field type	description
    id	   int	    unique item identifier (cannot be zero)
    parent_id  int	        parent item (or zero for top-level items)
    node_name varchar	text of menu item
    node_url     varchar	   target URL
    The above table is called sample_structure in the sample code. Please note that if you're using a different format for storing the structure, all you need to do is change the SQL queries in the sample code.

    Note that you will need to remove the sample lines generated by DHTML Menu Studio. This means a few calls to SSAdd... functions that come after the comment.

  3. #3
    Join Date
    Dec 2008

    Re: How to Generate menu from a databases

    The fully-qualified key database name must be between 2 and 251 characters and should either have no extension or an extension of '.kdb' (the maximum database name is 247 characters if the name does not end with an extension of 1-3 characters to allow for the addition of an extension when creating the request database or the password stash file).

    for more information on the database menu please check here

Similar Threads

  1. How to select data from two different databases in PHP?
    By Linoo in forum Software Development
    Replies: 4
    Last Post: 02-03-2010, 09:48 PM
  2. ORDER BY behavior in 9i and 10g databases
    By garfield1 in forum Software Development
    Replies: 4
    Last Post: 25-02-2010, 09:13 PM
  3. Virtualise databases more efficiently
    By Aidan 12 in forum Networking & Security
    Replies: 3
    Last Post: 31-10-2009, 01:51 PM
  4. Synchronization of databases
    By Dadhij in forum Software Development
    Replies: 4
    Last Post: 15-12-2008, 06:14 PM
  5. Remote access to databases
    By wazzeledozzle in forum Software Development
    Replies: 2
    Last Post: 02-10-2008, 07:16 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