title: Getting boolean isAdmin values using servlets in Java
body: <p>So I'm just starting to work on MVC architecture in school, working with jsp, servlets, java, db etc... I have a simple login form with name and password, and a database with users with the values (name, password, and isAdmin(boolean)) When a user enters their name and password, how would I compare the login name and password with whether they are an admin or not? The servlet redirects to admin.jsp page if it's an admin, or to user.jsp if it's just a user. Should I store within a session and do comparisons from there? I'm hoping this makes sense without the code, otherwise I will post if more info is needed.</p>