Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
Posts: 17344
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.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!