Abstract
The user first accesses your site through the login page. The user’s email and password are validated against the database in the login servlet. A user email with the correct matching password is presumed to be a valid user. The valid user is retrieved from the database and stored in the User object. Recall that the User object is generated by the “JPA Generate Entities from Tables” option.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Dave Wolf, A.J. Henley
About this chapter
Cite this chapter
Wolf, D., Henley, A.J. (2017). Users and Sessions. In: Java EE Web Application Primer. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3195-1_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3195-1_14
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3194-4
Online ISBN: 978-1-4842-3195-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)