What is the standard way of doing form authentication with Java Servlets?
Since now I have implemented that myself using a simple POST HTML form:
Try forwarding to error page only if data about a user is not present in database. If you found your user use the following code to redirect him to his "home" page
RequestDispatcher dis = request.getRequestDispatcher("relativeURL2Jsp"); dis.forward(request, response);