Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Role Based Menu in a JSP Page.  RSS feed

 
R.A.Partha sarathy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I have a JSP page with some Menu Items. The problem is i want to Enable or Disable some Menu Items based on the User or Role. pls help me.
Thanks in Advance
Sarthy(Sun_Sarthy@yahoo.com).
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- One solution is redirect to a jsp that has only the menus you want, depending on the user.
- another solution is to use the userInRole API of HttpServletRequest. Something like:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!