admytrenko Posted July 26, 2017 Share Posted July 26, 2017 Hi,I have to create custom home page with dynamic content depending of LDAP group the user belongs to. The user may belong to several groups, so I can't just set an individual home page for every role in homePageByRole at jasperserver-servlet.xml.I tried to write my own servlet and get info from request.getUserPrincipal(), but it returns NULL so I can't go further. I guess I'm missing something important such as authorization context or similar.Could you please advise me how to get user's roles from servlet or JSP page?I'm using JasperReports 6.3.0 with Apache Tomcat 8.5.16 and JRE 1.8.0_51.Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now