Hi I need to make a dynamic menu in my struts2 application, so there should be two different menus for members of website and guests, currently I am using Struts2 and tile to have a basic menu but I do not know how to change it for members when they are logged in.
Share
Well you have few options here
other solution, which is more flexible elegant and more powerful is to use spring security.Spring security comes with role system and some set of tags based on which you can show and hide option based on the logged in user and role assigned to the user.
I will go with the second one as its more flexible and easy to enhance in future.