Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3611516
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:53:08+00:00 2026-05-18T21:53:08+00:00

I have configured spring security core plugin using requestmap table inside the database.. Now

  • 0

I have configured spring security core plugin using requestmap table inside the database..

Now inside requestmap table I have all the possible urls and it’s equivalent roles who can access that url…

Now I want to generate menus and submenus based on the urls stored in requestmap table…

So my requirement is to check the urls of menu & submenus against the logged in users privileges… And if logged in user has any one privilege then I need to display that main menu and the available submenus….

For e.g. I have a menu in my project called user which has a following submenus :

**Users (main menu)**
Manage Users (sub menu)
Import Users (sub menu)

Now inside my header.gsp I have successfully achieved the above requirement using if else condition, like :

if ( privs.contains("/users/manageUsers") || privs.contains("/users/importUsers"))

here privs are the list of urls from requestmap table for logged in user.

But I want to achieve these using spring security tag lib, so for comparing urls I have find following tag from spring security core documentation :

<sec:access url="/users/manageUsers">

But i am bit confuse that how I can replace or condition using tag library.. Is there any tag available which checks from multiple urls and evaluate it to true or false ?

Of course I can do using sec:access tag with some flag logic, but is there any tags available which can fulfill my requirement directly ?

Thanks in advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:53:08+00:00Added an answer on May 18, 2026 at 9:53 pm

    The <sec:access/> tag has an expression attribute which will evaluate the expression you pass it:
    http://burtbeckwith.github.com/grails-spring-security-core/docs/manual/guide/6%20Helper%20Classes.html#6.1%20SecurityTagLib

    You could also very easily create your own logical tag, which renders the tag body only if your privilege-checking conditional above is true.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have spring-security configured using basic and form based authentication as per auto-config='true' .
I have a grails app configured with spring-security-core and I need to allow Facebook
I have configured two authentication providers in my Spring Security config: <security:authentication-manager> <security:authentication-provider ref=XProvider
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
I am using spring to initialise my beans. I have configured a bean which
I have a portlet application. It is configured using Spring framework IoC container. I
I am new to Spring Security and have configured Spring Security in my Spring
I am using Spring Security 3.1 and I have some code which I execute
I am using latest Apache CXF to create a webservice. I have configured ws-security
I have a j2ee web application using spring web flow ang spring security. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.