How can I overwrite default login logout pages of Spring Security. I will put my own login.html and logout.html files and don’t use jsp files just works with static contents at that side.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Specify them in your
security-context.xml(or whatever you’ve called yours) like this:But I think you’ll find it difficult to write a login page that works with Spring Security and doesn’t use JSP.
Here’s an example JSP page you can start from: http://loianegroner.com/2010/01/spring-security-login-and-logout-form-jsp/