Organizational Research By

Surprising Reserch Topic questions - Question:Is there a way to configure Roles in a property file for Spring security MVC app

I have a spring security MVC application. In few JSP files I have code that looks like this:


I have to make code changes (changing ROLE_FOO to something else) when deploying the app to production because it has different role names. So I was wondering whether there is a way to configure these role names in a property file and then pick those inside the tag.

So the code would look something like this:

Property File:


and JSP


btw, I am using Active Directory for authentication so these roles are pre-configured in the active directory for test and production.

asked Sep 13, 2013 in Core java by anonymous
edited Sep 12, 2013
0 votes

Related Hot Questions

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.