File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring security 3.0

 
Gina vernon
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gina vernon
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic