wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring security 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring security 3.0" Watch "Spring security 3.0" New topic
Author

Spring security 3.0

Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
Hi,
I need some help integrating spring security into a jsf page. I have the following configuration files:

LoginBean.java


Login.jsp



faces_config.xml


ApplicationContext.xml


web.xml


I do not have any failure urls setup. I want to first test a successful login. When I login the application doesn't take me to the loginsuccessful.jsp. It takes me to http://serverroot/faces/jsps/Login.jsp which is a non-existant page and browser cannot display it.
Any ideas what I am doing wrong?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

But you did tell Spring that you did have such a page

login-page="/WEB-INF/jsps/Login.jsp"
default-target-url="/WEB-INF/jsps/LoginSuccessful.jsp"/>

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
Mark Spritzler wrote:But you did tell Spring that you did have such a page

login-page="/WEB-INF/jsps/Login.jsp"
default-target-url="/WEB-INF/jsps/LoginSuccessful.jsp"/>

Mark


Ok, I was expecting the url to be serverroot/faces/web-inf/login.jsp. But why would it go back to the login page url on providing valid credentials. And why doesn't the browser display the page if the url is a valid page.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring security 3.0
 
Similar Threads
RichFaces + Spring Security -- Problem Load RichFaces
JSF 1.2 + Authentication with Spring Security 3.0.5
[Spring Security] No bean named 'springSecurityFilterChain' is defined
Problem in Spring security redirection
Spring security and jsf Integration