Alright, I'm finishing up my login page. Users can login successfully, if they provide the wrong password they are notified, however if they enter a username that doesn't exist the
servlet bombs.
My query is simple, I select all from my user table where the login ids match. So if there is no match, then obviously the loginID doesn't exist. How do I
test for that though?
For example:
String query = "SELECT * from user where loginID = '"+login+"'";
ResultSet resultSet = statement.executeQuery(query);
now where do I go from here? would all the attributes I would have acquired from the query be null, and simply test to see if one if null??