Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 15th, 2006, 02:11 AM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating Dynamic Menu in JSP

Hi Pals,
       I am using Jsp and database is MYSQL.

       I want to creat a menu structure dynamically.I have tabs in my main manu home,menu1,menu2,menu3.

        when i click on add new menu ,i need a page asks for menu name,and drop down listing all menu structure asking for which parent menu i want to add this menu.After submission the menu shold be added.Same should happen to to sub level menus also.

for eg

Home Menu1 Menu2 Menu3
      ..Menu11 ..Menu21
      ..Menu12 ..Menu22

     I will have a link Add new menu.when i click on that a new page should be like

    Menu name text box
    Parent menu listbox ..consists all the menu structure

   when i give a Menu name and select a particular menu from list box that menu should add under that parent menu.Suppose the user clicks on Menu221 and gave menu name as "support" then the menu structure
shold b like this..

Home Menu1 Menu2 Menu3
      ..Menu11 ..Menu21
      ..Menu12 ..Menu22

   Thanks in advance


Old January 13th, 2010, 09:13 AM
Registered User
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How To Create Dynamic Menu In JSP

I am also having the similar problem, actually i am creating a role based access system, so i have to create menu's from database according to user roles.
Can any one help me out to create menu in jsp and that is coming from any database.

Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic menu in .net anuMScIT C# 2005 1 December 30th, 2006 12:26 PM
creating dynamic menu in jsp geethagowri J2EE 2 April 15th, 2006 01:49 AM
onclick dynamic menu sionsolo42069 ASP.NET 1.0 and 1.1 Basics 3 March 31st, 2006 05:26 PM
List/Menu and JSP Debb Dreamweaver (all versions) 0 November 29th, 2005 09:37 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.