This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with dynamically generated menu. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Problem with dynamically generated menu." Watch "Problem with dynamically generated menu." New topic
Author

Problem with dynamically generated menu.

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
Hi..

i have 2 jsp pages...one is the login page n other main page.
the main page contains a set a menus in it.these menus are coded using javascript n dhtml.
the user who logs in is divided into certain groups.these groups have certain rights.i have trapped the usergroup ,the problem is that depending
on the usergroup ,in main page i have to enable only those menu's which must b accessed by tht particular group and the rest menu's must b disabled or sumhow restricted from use by tht user.
is it possible to disable a menu in javascript by taking usergroup form jsp as a variable?
plz help me outta this
thanks in advance
Smyle
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Why don't you have the jsp write out the items for the menu depending on what group they are?
 
I agree. Here's the link: jrebel
 
subject: Problem with dynamically generated menu.
 
Similar Threads
Menu Display Problem in STRUTS ....
Help in JSP + menus
a question about a drop-down menu
disable the links in jsp page
user authentication