Jump to content
We've recently updated our Privacy Statement, available here ×

How to hide all the menus Item in JasperReports Server version 5?


ahamdaoui

Recommended Posts

Hello,

I m using Jaspersoft  Version 5.

I want to hide menus / bleu band for the Role_USER but not For the role_Administrator. For that, I used the procedure page 153-158 "customizing Menus".

So I modified the 3files :  actionModel-navigation.xml /  homeforNonDemo.jsp / applicationcontext-security.xml

but i get some problems :

Even if i put that : <context name="main_home_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"/>
   <context name="main_library_mutton" test="checkAuthenticationRoles" testArgs="ROLE_ADMINISTRATOR"/> 

I still see the library. So how can I hide it fot the user?

and i got a message 'Access Denied" . So how to not show that?

I my post is not clear plz say it to me to give more explanation

thanks a lot

The attatchment shows what i get.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Hello Ahamdaoui,

This is very simple you dont need to change more  file.

Just change in decorator.jsp find in web-inf/decorator/decorator.jsp and find the tag where menu is started and use <auth:usernot=jasperadmin> somthing like this and add tag for menu authontication and define only jasperadmin user this way u can easily hide menu bar from other user.

may this help u because i have done this

Saurabh consultant 101

Link to comment
Share on other sites

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...