Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can I use Java spring MVC login in my web page?

user-image
Question added by Yazan Ahmad , programmer , wysada
Date Posted: 2013/06/18
Bassem Zohdy
by Bassem Zohdy , Senior Software Architect , HelpAG

Spring MVC do not have login, may be you will need to use Spring security and by adding filter to your web application as: myFilter org.springframework.web.filter.DelegatingFilterProxy myFilter /* then you can apply spring security check this link http://static.springsource.org/spring-security/site/docs/3.0.x/reference/security-filter-chain.html

Spring supports integration with many technologies.
So it mainly depends on how you are going to log-in.
If you are going to log-in using LDAP, spring provides integration with it and you can easily configure it.
If you are going to log-in using DB authentication there is a different configuration for it, etc.
You can check the below URLs for different ways of spring security examples.
http://krams915.blogspot.com/2011/01/spring-security-mvc-using-ldap.html http://www.mkyong.com/spring-security/spring-security-form-login-example/ http://kh-yiu.blogspot.com/2012/12/spring-mvc-security-custom.html http://fruzenshtein.com/spring-mvc-security-mysql-hibernate/

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.