This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to provide security to url using springs

 
Rajitha koduru
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need to provide security to an url(eg:http://localhost:8080/webapplication1/index.jsp) in springs project(url is not a part of springs project).


In security-context.xml

<security:intercept-url pattern="http://localhost:8080/webapplication1/index.jsp"
access="ROLE_READ,ROLE_READWRITE,ROLE_NOACCESS" /> ============ security is not provided(url belongs to other project)


<security:intercept-url pattern="/login.jsp"
access="ROLE_READ,ROLE_READWRITE,ROLE_NOACCESS" /> ============ security is provided(login.jsp is part of springs project)


new to springs can someone help to solve this
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not as familiar with Spring Security as I should be, but I don't think Spring is what you need for defending URLs.

Spring Security can be paired with J2EE standard container security, however, and container security does protect URLs, using patterns and rules that you define in WEB-INF/web.xml.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic