Implement a Fixed Login Form in Spring
Many websites feature pages that require access control. To gain access, users must authenticate; that is, they must state who they are and prove it. The most common way to support this is to present a username/password login form to the user. This approach not only provides reasonably good security, but it also is practical to implement. A better approach may be to display a login form in a fixed location on every page until the user logs in.
With a fixed login form, the login fields are built into a page header or some other fixed location on a main page. Rather than using a separate login page, this approach highlights the fact that a site supports user registrations and logins, and it allows the user to log in with one fewer click.
Download the PDF to get the full excerpt of "Implement a Fixed Login Form" from an Early Access version of Spring in Practice.
Courtesy of Manning Publications. All rights reserved.
About the Authors
Willie Wheeler is an IT Director for the Apollo Group. He has 11 years of experience in Java/Java EE development, including four years with the Spring Framework. He has published technical articles and speaks on Spring and other topics.John Wheeler develops Java software using the Spring Framework for the government, education, and private sectors. He has published technical articles and speaks on Spring and other topics.
