@@ -0,0 +1,1130 @@
+package com.ticktac.utils;%0A%0Aimport java.io.IOException;%0A%0Aimport javax.persistence.EntityManager;%0Aimport javax.servlet.RequestDispatcher;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.transaction.UserTransaction;%0Aimport javax.ws.rs.client.Client;%0Aimport javax.ws.rs.client.ClientBuilder;%0Aimport javax.ws.rs.client.WebTarget;%0A%0Apublic class SubmitCredentialsRequestHandler implements RequestHandler %7B%0A%0A%09@Override%0A%09public String handleRequest(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A%09%09Client client = ClientBuilder.newClient();%0A%09%09WebTarget webResource = client.target(%22http://localhost:8081%22).path(%22banking%22);%0A%09%09%0A%09%09String out = webResource.request().accept(%22applicatio/json%22).get(String.class);%0A%09%09%0A%09%09request.setAttribute(%22out%22, out);%0A%09%09%0A%09%09return %22InsertBankInfo.jsp%22;%0A%09%7D%0A%0A%09@Override%0A%09public String handleRequest(HttpServletRequest request, HttpServletResponse response, EntityManager em,%0A%09%09%09UserTransaction tr) throws ServletException, IOException %7B%0A%09%09return null;%0A%09%7D%0A%09%0A%09%0A%0A%7D%0A

add SubmitCredentialsRequestHandler.java