Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!