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

  • Home
  • SEARCH
  • 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 6872275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:54:26+00:00 2026-05-27T03:54:26+00:00

I have integrated Spring Security in my application and have defined access levels to

  • 0

I have integrated Spring Security in my application and have defined access levels to pages in my spring-security.xml in the following format

<intercept-url pattern="/login" access="permitAll" />
<intercept-url pattern="/index" access="Admin" />

Now , the above mentioned pattern restricts access to a certain page, but is it possible to go to a much more granular level and restrict access by allowing all the users to view the page , but disabling the edit controls on the page.

  • 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-27T03:54:26+00:00Added an answer on May 27, 2026 at 3:54 am

    Of course. If you are using JSP than there are built-in tag libraries:

    <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
    
    <sec:authorize access="hasRole('supervisor')">
      <a href="edit">edit</a>
    </sec:authorize>
    

    The edit link will only appear if the user has supervisor role. There are similar solutions for other view technologies. If you are building your UI in some component framework like Wicket, just check user credentials in Java code and hide certain controls there.

    However this is just the beginning. You should also enforce security on the server side by restricting either URL or Java methods (@Secured and friends).

    Otherwise the link won’t be visible, but malicious user can still discover hidden URL or perform HTTP POST using external tools.

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

Sidebar

Related Questions

I have integrated spring security plugin with my grails application, which has hibernate as
I have integrated Spring Security in my application , and would like to display
We have a Spring MVC application. We now have to integrate spring security in
We have Spring MVC application. We are trying to integrate the Spring security in
I have a JSP struts application that uses Spring to integrate with the services/dao/database.
I have integrated a Silverlight Navigation Application in an ASP.NET MVC web. However when
I have always enabled integrated security on my web apps inside IIS with the
I have an ASP.Net 2.0 application that uses integrated Windows Authentication to authenticate/authorize users.
I have a grails app configured with spring-security-core and I need to allow Facebook
I'm developing a web application with multiple frameworks (spring, hibernate, spring-security, ZK for GUI),

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.