There are certain times where I have to output html code for errors/information e.g. "Password successfully updated" or "Login failed". When I use out.println, the message is just displayed at the top of the screen, how can I perhaps use a dialog box or position this text appropriately?
out.println("Employee Account Successfully Created");
RequestDispatcher rs = request.getRequestDispatcher("NewEmployee.html");
rs.include(request, response);