Dear All,
I just got a Web Application Project from other people's hand. It basically use
Jsp,
Servlet and JavasCRIPT TO implement. It has it's own logon page to check the access right of the users. Some groups might have powerful right that they can view all the menus, but some are not.
I just view the code of the logon page, I found out the previous programmer "Hard_Coded" the user group from the jsp. I am wondering if it's the right way to do it. So what if the groups keep appending, and all of them has different menus ? Here is the tedious code:
That is super tedious to me, do you guys has any good suggestion to implement those logic better than the above code ? Since I hate hard-code.
Myriad Thanks
Transistor
[ April 02, 2006: Message edited by: Bear Bibeault ]