• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

how to provide security to url using springs  RSS feed

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
Posts: 20724
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • 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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!