• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Spring security 3.0  RSS feed

 
Ranch Hand
Posts: 108
  • 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?
 
ranger
Sheriff
Posts: 17314
11
IntelliJ IDE Mac Spring
  • 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
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!