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 6789111
In Process

The Archive Base Latest Questions

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

I am using Spring Security 3.0.3 for a project.My user info is loaded from

  • 0

I am using Spring Security 3.0.3 for a project.My user info is loaded from the database. I have following interceptor

<intercept-url pattern="/admin/**" access="ROLE_ADMIN"/>
<intercept-url pattern="/**" access="ROLE_USER"/>

I want to add interceptor to user data. When I logging with user1(requester as role) he can see only specific user1 data.

http://localhost:7009/Test/requester//30351?menuId=app.requester.new

but when I logging with another user2(requester as role) and Enter above URL in browser.

http://localhost:7009/Test/requester//30351?menuId=app.requester.new. 

he can see user1 data.

How can I add interceptor so that it restrict another user data.

Following is scenario
1>
login with user1 and he can see following list of data
101
102
103
when i clicks on 102 data it opens details of 102 data.

http://localhost:7009/Test/requester//102?menuId=app.requester.new. 

2> login with user2 and he can see following list of data
104
105
106

when i clicks on 105 data it opens details of 105 data.

http://localhost:7009/Test/requester//105?menuId=app.requester.new.

but when i copy user1 link

 http://localhost:7009/Test/requester//102?menuId=app.requester.new.  

and paste into browser . user2 can see details of user1 data.

  • 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-26T17:33:54+00:00Added an answer on May 26, 2026 at 5:33 pm

    You don’t filter everything in the spring security configuration but rather do it in view or controller. Here is a very good tutorial which shows you how to use spring security in your case.

    http://static.springsource.org/spring-security/site/petclinic-tutorial.html

    If you use JSP for your view, you can use spring security taglib to handle the view of user own data and, for other user’s data, you will need to put the filtering logic inside the controller and pass them as model to the view. However, the exact solution depends on your application.

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

Sidebar

Related Questions

I have configured spring security core plugin using requestmap table inside the database.. Now
How can I implement following functionality in a project using or without using spring-security.
I am trying to programatically validate a user login/pass using Spring Security, so I
I have installed spring-security-core in a grails project, but for some reason, IDEA didn't
I am using Spring Security 3.0.3 for a project. This project has 3 areas
I'm using spring security, and I need to get the User domain object in
I have upgrade the project from framework3.5 to framework4.0.Right Now i am using Visual
I'm using Spring MVC and Spring Security on a project, and am implementing a
greetings all, i am using spring security 3.0.2, urlRewrite 3.1.0 , and i have
I am using Spring Security 3 in Struts 2 + Spring IOC project. 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.