I need to hide navigation in a jsp page using the role of the employee logged in. The application is logged in using single sign on. I will be getting only username of the user from another application using which i will search in the database to get the employee details. I have a role column in the employee table which i am currently using in javascript to show and hide navigation. How can i set spring security role and use in jsp tag like "hasRole('anyROle'), to show or hide navigation. I have a entity employee which will be used to get data from database, so how can i create authorities using this.I need to hide navigation in a jsp page using t