aspose file tools*
The moose likes Tomcat and the fly likes how to provide security to url using springs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to provide security to url using springs" Watch "how to provide security to url using springs" New topic

how to provide security to url using springs

Rajitha koduru

Joined: Sep 20, 2012
Posts: 4
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

Joined: Jun 25, 2001
Posts: 15624

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: how to provide security to url using springs
Similar Threads
Spring 3 + Spring Security 3 + Struts2 + Hibernate 3
Problem with <security:intercept-url pattern=...>
"Spring Security Application" Initiated by Apache
Session getting created twice and session not getting decremented.