@@ -0,0 +1,1682 @@
+package com.ticktac.controllers;%0A%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0A%0Aimport javax.annotation.Resource;%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.PersistenceContext;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.transaction.UserTransaction;%0A%0Aimport com.ticktac.utils.RequestHandler;%0A%0A/**%0A * BankController%0A */%0A@WebServlet(description = %22Controller that processes information about bank actions%22,%0AurlPatterns = %7B %22/submitcredentials%22 %7D)%0Apublic class BankController extends HttpServlet %7B%0A%09private static final long serialVersionUID = 1L;%0A%09private HashMap%3CString, Object%3E handlersMap = new HashMap%3CString, Object%3E();%0A%09@PersistenceContext(unitName=%22ticktacUP%22)%0A%09EntityManager em;%0A%09@Resource%0A%09UserTransaction tr;%0A       %0A    public BankController() %7B%0A        super();%0A    %7D%0A%0A%09public void init() %7B%0A%09%09handlersMap.put(%22submitcredentials%22, new SubmitCredentialsRequestHandler());%0A%09%7D%0A    %0A%09protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%09%09doPost(request,response);%0A%09%7D%0A%0A%09protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%09%09String path = request.getServletPath();%0A%09%09String viewURL = %22notfound.html%22;%0A%09%09RequestHandler handler = (RequestHandler) handlersMap.get(path);%0A%09%09%0A%09%09if(handler != null) %0A%09%09%09viewURL = handler.handleRequest(request, response, em, tr);%0A%09%09request.getRequestDispatcher(viewURL).forward(request, response);%0A%09%7D%0A%0A%7D%0A

add bank controller