• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

login-processing-url in Spring Security

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Usually, it is configured in spring security application like login-processing-url="/processLogin" , but I never can see where /processLogin is defined. Please advise how it works.


Thanks
 
Ranch Hand
Posts: 77
Eclipse IDE Tomcat Server Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


In the above code, the login page is defined as /loginDisplay.spring . We can configure /loginDisplay.spring as welcome-file in web.xml .We need to return login page in our controller. suppose login.jsp page. In the login.jsp ,<form> "action" attribute value should be /loginForm.spring. We don't need to write a controller method with @RequestMapping(loginForm). Here the url goes to spring security and checks whether the user credentials are correct or not and dispatches the request to /loginSuccess.spring if correct, otherwise it goes to same page with errors i.e, /loginDisplay.spring/error.
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic