This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread 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 Practical Unit Testing with TestNG and Mockito this week in the Testing 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: 15003
Why don't you have the jsp write out the items for the menu depending on what group they are?
 
IntelliJ Java IDE
 
subject: Problem with dynamically generated menu.
 
Threads others viewed
user authentication
disable the links in jsp page
Help in JSP + menus
Menu Display Problem in STRUTS ....
a question about a drop-down menu
developer file tools