import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class HomeServlet extends BaseServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Player player = (Player) request.getSession().getAttribute("player");
if (player == null) {
viewIndex(request, response, "Je bent niet ingelogd");
return;
}
if (!player.isActive()) {
viewElimination(request, response);
return;
}
if (DataService.currentTestId == 0) {
viewWait(request, response);